nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] still could n
启动 Nginx 服务得时候报错,错误信息如下nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)nginx: [emerg] still could not bind()#发现服务起不来,可以先查一下80端口是否被占用netstat -antp |grep 80#然后查看自己是否开启了 httpd 等其他
文章共331字 · 阅读需要大约2分钟
一键AI生成摘要,助你高效阅读
问答
·
启动 Nginx 服务得时候报错,错误信息如下
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
#发现服务起不来,可以先查一下80端口是否被占用
netstat -antp |grep 80
#然后查看自己是否开启了 httpd 等其他 Web 服务,如果有则需关闭
#查看 nginx 进程号,并用 kill 命令进行重载
[root@nginx /opt/nginx-1.12.2]#cat /usr/local/nginx/logs/nginx.pid
15579
[root@nginx /opt/nginx-1.12.2]#kill -3 15579
[root@nginx /opt/nginx-1.12.2]#nginx
更多推荐
已为社区贡献1条内容
所有评论(0)