Address already in use: make_sock: cocould not bind to adress 0.0.0.0: 80, no listening sockets available, shutting down
This problem occurs because the default Apache port is 80, but port 80 is occupied, resulting in Apache startup exception or failure. In this case, you cannot enter http: // localhost in the browser.It works!. The solution is to find which process occupies port 80. I found a very bullshit cmd command from the Internet:"Netstat-tulpn | grep: 80"But I always prompt"The file name, directory name, or volume label syntax is incorrect." I can only say that this kind of content has not been tested. Can it be replaced by experience stickers? Do you know that, grandsons!
Http://www.owon.cn/techshow.asp? Newsid= 613
Thanks to this friend's post for providing the best answer. Here we will directly paste the simple solution together.
If we need to determine who is using port 80
1. Windows Platform
Run the following command in the windows command line window:
C: \> netstat-aon | findstr "80"
TCP 127.0.0.1: 80 0.0.0.0: 0 LISTENING 2448
As you can see, the port is occupied by a process with the process number 2448. Continue to execute the following command:
C: \> tasklist | findstr "2448"
Thread.exe 2016 Console 0 16,064 K
Well, thread occupies your port and Kill it.
If you cannot find the process in step 2, open the task manager, check which process is 2448, and then kill it.
If you want to view other ports. Change 80.
OK. After testing, I found that the previously installed IIS occupied port 80 and tried to manually kill the process according to the above method. However, IIS is tenacious. After manually killing the IIS, I restarted it myself, the solution is to stop the IIS service on the control panel. Next, this friend gave a correct method to stop IIS, which is simple, simple, and clear.
Http://blog.sina.com.cn/s/blog_9bf0754b010130f1.html
Note: When you try to directly disable the entire IIS directory tree, the stop button is dimmed and you must follow this step.
Control Panel --Performance and maintenance-management tools --Internet Information Service-local computer-website-default website
In order to stop the service correctly. OK. Restart Apache after It is stopped. It works appears.