首页 > 其他 > 详细

LNMP环境搭建之Nginx服务启动失败

时间:2016-04-07 01:46:10      阅读:363      评论:0      收藏:0      [点我收藏+]

错误提示:

Starting nginx:nginx:[emerg]bind()to 0.0.0.0:80 failed(98:Address alreadr 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()


根据错误判断应该是80端口的问题,于是我查看了一下80端口占用情况。


#lsof -i:80 


[root@chensenlin sbin]# lsof -i:80

COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NODE NAME

nginx   4005   root    6u  IPv4  14957      0t0  TCP *:http (LISTEN)

nginx   4013 nobody    6u  IPv4  14957      0t0  TCP *:http (LISTEN)


然后将这两个进程kill。


[root@chensenlin sbin]# kill -9 4005

[root@chensenlin sbin]# kill -9 4013


最后启动成功!


[root@chensenlin sbin]# service nginx start

Starting Nginx:                                                 [      OK    ]


本文出自 “SenLinux” 博客,请务必保留此出处http://chensenlin.blog.51cto.com/10559465/1761026

LNMP环境搭建之Nginx服务启动失败

原文:http://chensenlin.blog.51cto.com/10559465/1761026

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!