centos启动Nginx提示nginx: [emerg] still could not bind()
生活随笔
收集整理的這篇文章主要介紹了
centos启动Nginx提示nginx: [emerg] still could not bind()
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
centos7中啟動Nginx: /usr/local/nginx/sbin/nginx,提示以下內容
[root@localhost nginx-1.8.0]# /usr/local/nginx/sbin/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端口),然后根據端口查看端口占用情況
使用netstat -ntlp|grep 80 指令
然后使用以下指令關閉,然后再重啟nginx就可以了
[root@localhost nginx-1.8.0]# kill -9 11903總結
以上是生活随笔為你收集整理的centos启动Nginx提示nginx: [emerg] still could not bind()的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: nginx启动成功,解决别的电脑访问不了
- 下一篇: java中调用api的方式(postJs