Windows服务器Nginx端口被占用无法启动的解决

Nginx突然无法运行,提示绑定0.0.0.0:80失败。

1.使用 netstat -ano命令查看端口情况,得知是pid 4的进程占用80端口,但这是system进程无法结束。

2.接下来,使用net stop httpSc config http start= disabled禁用http服务,概要禁用world wide web publishing service,重启服务器。

3.再次进入系统后,再次查看端口情况,没问题就启动Nginx。

4.使用sc config http start= auto更改http服务启动状态,再进入IIS启动根主机。

posted @ 2014-05-23 16:36  walteronly1  阅读(693)  评论(0编辑  收藏  举报