centos启动Nginx提示nginx: [emerg] still could not bind()

复制代码
[root@iZbp1aed32ln6eZ sbin]# netstat -ntlp|grep 80
tcp        0      0 127.0.0.1:8005          0.0.0.0:*               LISTEN      1501/java           
tcp        0      0 0.0.0.0:8009            0.0.0.0:*               LISTEN      1501/java           
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      7225/nginx: master  
tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      7036/java           
[root@iZbp1aed32ln6eZ sbin]# kill -9 7225
[root@iZbp1aed32ln6eZ sbin]# ./nginx -s reload
nginx: [alert] kill(7225, 1) failed (3: No such process)
[root@iZbp1aed32ln6eZ sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
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()
[root@iZbp1aed32ln6eZ sbin]# netstat -ntlp|grep 80
tcp        0      0 127.0.0.1:8005          0.0.0.0:*               LISTEN      1501/java           
tcp        0      0 0.0.0.0:8009            0.0.0.0:*               LISTEN      1501/java           
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      7276/nginx: worker  
tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      7036/java           
[root@iZbp1aed32ln6eZ sbin]# killall -9 nginx
[root@iZbp1aed32ln6eZ sbin]# systemctl restart nginx
Failed to restart nginx.service: Unit not found.
[root@iZbp1aed32ln6eZ sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
[root@iZbp1aed32ln6eZ sbin]# ./nginx -s reload 
复制代码

 

posted @   ThisCall  阅读(8318)  评论(1编辑  收藏  举报
编辑推荐:
· MySQL 优化利器 SHOW PROFILE 的实现原理
· 在.NET Core中使用异步多线程高效率的处理大量数据
· 聊一聊 C#前台线程 如何阻塞程序退出
· 几种数据库优化技巧
· 聊一聊坑人的 C# MySql.Data SDK
阅读排行:
· 跟着 8.6k Star 的开源数据库,搞 RAG!
· .NET 9 中的 多级缓存 HybridCache
· 夜莺 v8 第一个版本来了,开始做有意思的功能了
· .NET 9 增强 OpenAPI 规范,不再内置swagger
· 推荐一个C#轻量级矢量图形库
点击右上角即可分享
微信分享提示