码迷,mamicode.com
首页 > 其他好文 > 详细

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

时间:2019-01-29 11:59:16      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:[1]   rev   kill   killall   use   ystemd   说明   ESS   led   

[root@localhost ~]# journalctl -xe
Jan 29 localhost 10:39:20  nginx[8556]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Jan 29 localhost 10:39:20  nginx[8556]: nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
Jan 29 localhost 10:39:20  nginx[8556]: nginx: [emerg] still could not bind()
Jan 29 localhost 10:39:20  systemd[1]: nginx.service: control process exited, code=exited status=1
Jan 29 localhost 10:39:20  systemd[1]: Failed to start The nginx HTTP and reverse proxy server.

 

说明80端口被占用,杀掉这个进程:
[root@localhost ~]# killall -9 nginx
再次启动nginx:
[root@localhost ~]# /usr/local/nginx/sbin/nginx
查看是否启动:
[root@localhost ~]# ps aux|grep nginx

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

标签:[1]   rev   kill   killall   use   ystemd   说明   ESS   led   

原文地址:https://www.cnblogs.com/l-zl/p/10333029.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!