重启nginx时出现如下错误:
[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
这是nginx重复重启造成的,自己占用了端口。解决办法:杀掉nginx进程再重新启动。
killall -9 nginx service nginx start
重启nginx时出现如下错误:
[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
这是nginx重复重启造成的,自己占用了端口。解决办法:杀掉nginx进程再重新启动。
killall -9 nginx service nginx start