hkin 发表于 2010-10-9 13:36:47

军哥,遇到大问题了,lnmp正常启动,却打不开任何页面

用/root/lnmp status查看如下#/root/lnmp status
=========================================================================
Manager for LNMP V0.4,Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Nginx is running now!
SUCCESS! MySQL running (4524)


重启也正常
#/root/lnmp restart
=========================================================================
Manager for LNMP V0.4,Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l
Nginx program is reloding!
Shutting down MySQL. SUCCESS!
Starting MySQL.. SUCCESS!
Shutting down php_fpm . done
Starting php_fpmdone


一切看来都正常,我很郁闷
这是为什么呢?
进程里好像没有nginx的那一项呢

licess 发表于 2010-10-9 13:39:43

回复 1# 的帖子

执行netstat -ntl

再执行:/usr/local/nginx/sbin/nginx

hkin 发表于 2010-10-9 13:45:06

军哥,好像还是不行#netstat -ntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp      0      0 96.44.156.71:28231          0.0.0.0:*                   LISTEN
tcp      0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN
tcp      0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN
tcp      0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN
tcp      0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN
tcp      0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN
tcp      0      0 0.0.0.0:1723                0.0.0.0:*                   LISTEN
tcp      0      0 :::21                     :::*                        LISTEN
tcp      0      0 :::22                     :::*                        LISTEN
#/usr/local/nginx/sbin/nginx
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: still could not bind()

hkin 发表于 2010-10-9 13:46:20

系统出现502了,有点变化,但还是不能执行p.php

licess 发表于 2010-10-9 13:50:15

回复 3# 的帖子

80端口被占用。

hkin 发表于 2010-10-9 13:59:47

原帖由 licess 于 2010-10-9 13:50 发表 https://bbs.vpser.net/images/common/back.gif80端口被占用。 请教怎么解决呢?我刚执行了killall -9 nginx,然后又重启了lnmp 现在依然是打不开任何页面

licess 发表于 2010-10-9 14:06:40

回复 6# 的帖子

可能有其他程序占用了80端口,查看进程看看

hkin 发表于 2010-10-9 14:19:08

我用了pkill再重启好像行了,多谢军哥
页: [1]
查看完整版本: 军哥,遇到大问题了,lnmp正常启动,却打不开任何页面