[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) 问题思考?

简介: 正常运行时,即网页能够访问时: [root@web1 ~]# ps -aux | grep nginx Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ www       1928  0.0  0.5  64560 21748 ?        S    10:29   0:0
正常运行时,即网页能够访问时:
[root@web1 ~]# ps -aux | grep nginx
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
www       1928  0.0  0.5  64560 21748 ?        S    10:29   0:00 nginx: worker process                                          
root     37826  0.0  0.0 103168   856 pts/0    S+   10:56   0:00 grep nginx


出现 [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
问题时:
[root@web2 sk]# ps -aux | grep nginx
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
root      1608  0.0  0.0  44548  1080 ?        Ss   10:48   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
www       1609  0.0  0.5  64560 21276 ?        S    10:48   0:00 nginx: worker process                                          
root      1628  0.0  0.0 103168   856 pts/0    S+   10:56   0:00 grep nginx


然后测试其状态:
[root@web1 ~]# 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@web2 sk]# 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()


两个 web 服务器都被占用?那 web1 怎么能够访问? web2 竟然不能


难道是 主进程 在干扰?
怎样解决?
网上说的是
kill -9 $PID --nginx 的 pid

没有用,我这里

突然就弄好了?

看来下次要好好观察

目录
相关文章
|
7月前
|
应用服务中间件 nginx
Nginx nginx: [emerg] bind() to 0.0.0.0:8083 failed (48: Address already in use)
Nginx nginx: [emerg] bind() to 0.0.0.0:8083 failed (48: Address already in use)
193 1
|
3月前
|
NoSQL Redis
解决(error) ERR Errors trying to SHUTDOWN. Check logs.问题~
解决(error) ERR Errors trying to SHUTDOWN. Check logs.问题~
|
4月前
Error: listen EADDRINUSE: address already in use :::5000
Error: listen EADDRINUSE: address already in use :::5000
|
4月前
|
网络协议 NoSQL Redis
解决 Error starting userland proxy: listen tcp 0.0.0.0:6379: bind: address already in use
解决 Error starting userland proxy: listen tcp 0.0.0.0:6379: bind: address already in use
101 0
|
5月前
|
Docker 容器
Bind for 0.0.0.0:8080 failed: port is already allocated
Bind for 0.0.0.0:8080 failed: port is already allocated
112 0
|
10月前
|
Android开发
Error connecting to the service protocol failed to connect to错误
Error connecting to the service protocol failed to connect to错误
|
网络安全
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
1151 0
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
|
应用服务中间件 nginx
启动nginx报错,80 failed (97: Address family not supported by protocol)
启动nginx报错,80 failed (97: Address family not supported by protocol)
326 0
启动nginx报错,80 failed (97: Address family not supported by protocol)