nginx报错nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

nginx报错nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

仔细参考nginx中文文档发现,发送信号USR2时,自动启动新的可执行文件,再手动启动的话就会报错

本质上也算是一种地址冲突吧

 

如果平时安装时遇见该错误,就是80端口被占用,

找出占用80端口的程序杀掉即可

代码如下:

shell>netstat -tunlp

shell>pkill 占用80端口的程序

即可消除该错误

Drop Your Comment