bind() to 0.0.0.0:80 failed (98: Address already in use)

一次在查看nginx的状态时,发现nginx已经停止了

[root@VM /]# service nginx status
Redirecting to /bin/systemctl status nginx.service
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled; vendor preset: disabled)
Active: inactive (dead)

然后尝着重启下,结果发现启动不了,查看日志发现

2018/03/16 09:03:18 [emerg] 5343#0: bind() to 0.0.0.0:80 failed (98: Address already in use)

原来nginx重复重启导致自己占用了端口

解决用 killall -9 nginx 杀掉nginx 的进程  然后重启 service nginx restart 

转载于:https://www.cnblogs.com/qfzq/p/8578402.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值