C:\WINDOWS\system32>net stop http C:\WINDOWS\system32>netstat -ano | findstr 0.0.0.0:80 C:\WINDOWS\system32>sc config http start=disabled
进入“服务”里面找到world wide web publishing service,选择“禁用”
重启电脑以后启动nginx,这次成功了,但是我在任务管理器中任然能看到System这个程序在跑,他并没有被关掉,但是80确实已经不在被占用,nginx也启动成功
别忘记启用http服务:C:\WINDOWS\system32>sc config http start= demand & net start http