启用apache,发现80端口被占用【已解决】
2017-07-27 23:39
309 查看
十分感谢作者。转载:http://www.2cto.com/os/201111/111269.html
前段时间停止了Apache,结果在打开的时候发现无法打开,80端口被占用,于是win+r 运行cmd
输入netstat -ano
可以看到80端口被PID4占用,于是打开任务管理器-进程-查看,选择列,勾选PID
可以看到pid 4 的被NT kernel & System 占用
在网上找了很久找到解决方案
http://www.cameroncooke.com/2009/01/25/windows-7-uses-port-80-and-makes-it-impossible-to-install-apache-solution/comment-page-1/#comments
原文:
翻译如下:
该进程是Http.sys。它是http API的驱动组件,Http栈服务器。如果该端口被Http.sys占用,说明一些正在使用http.sys的应用程序在运行。这就是阻止Apache运行的原因,因为Http.sys占用着80端口。我们提供了一种应用程序的机制来帮助控制端口共享,但是我需要调查导致你遇到这种困难的是什么特殊应用程序。如果你能提供给我们“netsh http show servicestate”这条命令的输出结果,我就能找出是哪个应用程序在使用Http.sys。在你禁用Http.sys之前,请按照下面的步骤来运行命令:
1. sc config http stat = demand
2. reboot
3. run the command(netsh http show servicestat)as administrator
在你使用这个命令之前,你可以按照下面步骤禁用http.sys:
1. net stop http
2. Sc config http start= disabled
于是运行net stop http
按y 确定
在运行 Sc config http start= disabled
好了,现在启动Apache,可以启动了。
在查看一下netstat -ano
发现pid 4占用了445端口
前段时间停止了Apache,结果在打开的时候发现无法打开,80端口被占用,于是win+r 运行cmd
输入netstat -ano
可以看到80端口被PID4占用,于是打开任务管理器-进程-查看,选择列,勾选PID
可以看到pid 4 的被NT kernel & System 占用
在网上找了很久找到解决方案
http://www.cameroncooke.com/2009/01/25/windows-7-uses-port-80-and-makes-it-impossible-to-install-apache-solution/comment-page-1/#comments
原文:
翻译如下:
该进程是Http.sys。它是http API的驱动组件,Http栈服务器。如果该端口被Http.sys占用,说明一些正在使用http.sys的应用程序在运行。这就是阻止Apache运行的原因,因为Http.sys占用着80端口。我们提供了一种应用程序的机制来帮助控制端口共享,但是我需要调查导致你遇到这种困难的是什么特殊应用程序。如果你能提供给我们“netsh http show servicestate”这条命令的输出结果,我就能找出是哪个应用程序在使用Http.sys。在你禁用Http.sys之前,请按照下面的步骤来运行命令:
1. sc config http stat = demand
2. reboot
3. run the command(netsh http show servicestat)as administrator
在你使用这个命令之前,你可以按照下面步骤禁用http.sys:
1. net stop http
2. Sc config http start= disabled
于是运行net stop http
按y 确定
在运行 Sc config http start= disabled
好了,现在启动Apache,可以启动了。
在查看一下netstat -ano
发现pid 4占用了445端口
相关文章推荐
- 启用apache,发现80端口被占用【已解决】
- 启用apache,发现80端口被占用【已解决】
- 启用apache,发现80端口被占用【已解决】
- 启用apache,发现80端口被占用【已解决】
- Apache80端口被占用——解决方法
- apache的80端口被占用【已解决】
- 80端口未占用,apache无法启动解决办法
- 由IIS换到apache,始终报错,80端口被占用 解决方法
- PHPstudy的apache80端口被占用解决方法
- Apache 的80端口被win7的System PID=4的进程占用的解决方法
- Apache服务无法开启 解决方法(80端口被占用, 解决80端口被Microsoft-HTTPAPI/2.0占用的方法)
- IIS7和Apache2.2代理共用时,80端口被占用的解决方法(IIS端口修改步骤)
- Windows10占用80端口,Apache无法启动的解决办法
- microsoft-HTTPAPI占用80端口,导致APACHE,WAMP,PHPNOW无法启动解决方法
- Apache 解决80端口占用问题
- Apache&WAMP 解决80端口被占用问题
- apache服务无法启动或者80端口被占用解决办法
- apache 解决80端口占用问题
- Apache配置--同一台机器上两个应用需要同时占用80端口的问题解决方法
- xampp安装后apache 80端口被占用的解决方法