Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
首先在配置文件中查看nginx使用的端口,然后输入以下命令(我的是80端口):
netstart -ntlp|grep 80
查看是那个程序占用了nginx的端口,杀掉占用程序的端口即可,如果是nginx本身占用了改端口,则停止nginx服务,重新启动即可!