[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) 问题思考?
Failed to in 思考 use already bind 80
2023-09-14 09:00:28 时间
[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
[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
没有用,我这里
突然就弄好了?
看来下次要好好观察
相关文章
- Windows下解决github push failed (remote: Permission to userA/XXXX.git denied to userB.) 上传gitHub失败报错
- centos7重启网卡报Job for network.service failed because...错误
- 【Docker】iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8480 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables: No chain/target/match by that name
- nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 解决办法
- VM虚拟机Failed to initialize remote display subsystem怎么办
- Failed to create AppDomain 'xxx'. Exception has been Failed to create AppDomain
- Attempt to fetch logical page (...) in database 2 failed. It belongs to allocation unit xxxx not to xxx
- GConf error:Failed to contact configuration server
- 【COCOS2DX-LUA 脚本开发之十三】解决COCOS2DX-LUA编译到ANDROID找不到CCLUAENGINE、HELLOWORLD或出现GET DATA FROM FILE(XXX.LUA) FAILED/CAN NOT GET FILE DATA OF XXX.LUA、COCOS2DX
- Gradle sync failed 异常
- WSL(Linux子系统) gedit 报错 failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
- wsl centos7: Failed to get D-Bus connection: Operation not permitted
- why my detail page in SAP UI5 application is failed to be loaded from router
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile 解决办法
- Android报错提示:Failed to resolve: com.android.support.constraint:constraint-layout:1.1.3
- 成功解决 raise RuntimeError(“The JPMML-SkLearn conversion application has failed. The Java executable
- 【异常】运行SpringBoot程序提示异常,Web server failed to start. Port XXX was already in use.
- Python编程:pypi打包报错[SSL: CERTIFICATE_VERIFY_FAILED]
- [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
- 问题解决:Failed to start etcd.service: Unit is masked.
- Failed to initialize NVML: Unknown Error
- jenkins报错 Upgrading Jenkins. Failed to update the default Update Site 'default'. Plugi
- Failed to set remote answer sdp: Called in wrong state: stable
- 解决git push报错error: failed to push some refs to 的问题
- 【问题记录】ImportError: DLL load failed while importing _imaging: 找不到指定的模块
- Failed to replace a bad datanode on the existing pipeline due to no more good datanodes being avail