Recently found that Apache failed to start, check log also no fruit, through the manual launch prompts the following error:
(OS 10048) typically each socket address (Protocol/network address/port) is allowed only once. : Make_sock:could not bind to address 0.0.0.0:80
No listening sockets available, shutting down
Unable to open logs
This is due to the 80 port is occupied, the use of 80 ports to stop the process.
How do I see that process takes up 80 ports?
Start--run--cmd Enter the command prompt input Netstat-ano you can see all the connected PID in the task Manager to find the program corresponding to this PID if the task Manager does not have the PID this item, you can select "View"-"Choose Column" in Task Manager
Often, when we start the application to find that the system needs the port to be occupied by other programs, how to know who owns the port we need, many people have a headache, the following is a very simple way to introduce
If we need to determine who's taking up our 80 ports,
Windows platform
Execute under Windows command Line window:
C:>netstat-aon|findstr "80"
TCP 127.0.0.1:80 0.0.0.0:0 Listening 2448
Do you see that the port is occupied by a process number 2448 process, and continue with the following command:
C:>tasklist|findstr "2448"
Skype.exe 2016 Console 0 16,064 K
It turned out that Skype occupied 80 ports, because a period of time before the foreign MSN Stop Service, the company also followed the switch to Skype online communication, installed Skype, because it did not start Apache, so the 80 port was Skype to swoop in.
In the Skype menu "Tools > Options", find "Advanced > Connection", remove the "80 port and 443 port as the standby port for the access device", so that it does not occupy 80 ports.
or change Apache port to other, such as 8080, also can solve the problem.