本文介绍了Apache的80端口错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行WAMP的服务器,但我认为Apache越来越东西堵住端口80。

我做了一些研究,发现在事件查看器它给人的错误:

i looked up 0.0.0.0:80 on netstat -ao, which gave a PID of 4. The only problem is, there is nothing with a PID of 4 on my task manager. Does anyone know what might be taking up port 80, or how i might figure this out?

Thanks in advance.

EDIT:

Yes, i did deactivate the port from Skype, and it is forwarded correctly. This started happening i think when I installed IIS, but i thought i got rid of it.(yes i did disable it in control panel)

EDIT:

OK, i just changed the port in the config, all is well. Dont' know why i didn't think of that originally.

解决方案

There are 2 ways to solving this problem. 1. If you want to run Apache in another port then:Replace in xampp/apache/conf/httpd.conf ServerName localhost:80 by ServerName localhost:81 At line 184. After that even it may not work.Then replace

 #Listen 0.0.0.0:80
 #Listen [::]:80
 Listen 80

by

#Listen 0.0.0.0:81
#Listen [::]:81
Listen 81

at line 45

2.Your port 80 is being used by the system or skype. If by skype then firs quit skype and run Apache. And you can restart skype.

  1. In Windows "World Wide Publishing" Service is using this port and stopping this service will free the port 80 and you can connect Apache using this port. To stop the service go to the "Task manager –> Services tab", right click the "World Wide Publishing Service" and stop.
  2. If you don't find there then Then go to "Run > services.msc" and again find there and right click the "World Wide Publishing Service" and stop.Insha Allah that will work.
  3. If you didn't find "World Wide Publishing Service" there then go to"Run>>resmon.exe>> Network Tab>>Listening Ports" and see whichprocess is using port 80

And from "Overview>>CPU" just Right click on that process and click "End Process Tree". If that process is system that might be a critical issue.

这篇关于Apache的80端口错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-27 03:02
查看更多