VPS侦探论坛

 找回密码
 注册
查看: 6223|回复: 5

CentOS安装LNMP nginx无法启动

[复制链接]
发表于 2013-9-7 17:57:36 | 显示全部楼层 |阅读模式

安装完LNMP后,可以访问欢迎界面。只要系统重启,nginx就会无法启动,重启LNMP服务,其他均正常,NGINX就是无法启动。昨天安装了3次,最后发现,好像是YUM的时候,有一些组件没有安装上,请问官方是否有解决办法
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-9-7 20:16:53 | 显示全部楼层


可能nginx没启动,可以尝试在/etc/rc.local 里加入/usr/local/nginx/sbin/nginx 试试看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-9-7 20:53:03 | 显示全部楼层

手动启动时,提示这样的错误


[root@localhost ~]# /etc/init.d/nginx start
Starting nginx daemon: nginxnginx: [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()
nginx already running.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-9-7 20:53:32 | 显示全部楼层

回复 2# 的帖子




手动启动时,提示这样的错误

[root@localhost ~]# /etc/init.d/nginx start
Starting nginx daemon: nginxnginx: [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()
nginx already running.
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-9-8 09:46:20 | 显示全部楼层

nginx 已经启动 或其他程序占用80端口才会提示上面的信息

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2013-9-8 12:36:45 | 显示全部楼层

回复 5# 的帖子


[root@localhost ~]# lsof -i:80
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   2326 root    6u  IPv4  12607      0t0  TCP *:http (LISTEN)
nginx   2327  www    6u  IPv4  12607      0t0  TCP *:http (LISTEN)  

nginx占用了80啊~~纠结
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-15 20:37 , Processed in 0.026956 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表