nginx502重启后再也无法访问,浏览器提示服务器拒绝连接
我用的是 lnmpa,话说之前一直正常运行的,然后突然中午开始 nginx502 了,我就通过 linode 的面板重启了 vps,但是重启之后用浏览器访问就开始显示服务器拒绝连接了。错误 102 (net::ERR_CONNECTION_REFUSED):服务器拒绝了连接。
额,我没有开 iptables,而且重启 lnmpa 的时候看起来不大正常。
# sh lnmpa restart
=========================================================================
Manager for LNMPA V0.7,Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org
Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
lnmp: line 62: kill: (25735) - No such process
Nginx program is stop
PHP-FPM program is not runing!
MySQL program is not runing!
Starting LNMP...
Nginx is runing!
# pstree -G
init─┬─atd
├─auditd─┬─audispd───{audispd}
│ └─{auditd}
├─automount───4*[{automount}]
├─crond
├─dbus-daemon
├─dhclient
├─gam_server
├─gpm
├─irqbalance
├─klogd
├─mingetty
├─ntpd
├─php-fpm───2*
├─2*
├─sshd─┬─sshd───bash───top
│ └─sshd───bash───pstree
├─syslogd
├─udevd
# df -lh
Filesystem SizeUsed Avail Use% Mounted on
/dev/xvda 4.0G2.9G986M75% /
tmpfs 249M 0249M 0% /dev/shm
这些是相关信息,因为之前一直正常,其他啥都没动,只是重启了一下就这样了。求助啊啊啊 (PД`q。)·。'゜泪奔中…… # sh lnmpa restart
=========================================================================
Manager for LNMPA V0.7,Written by Licess
=========================================================================
LNMPA is a tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
This script is a tool to Manage status of LNMPA
For more information please visit http://www.lnmp.org
Usage: /root/lnmpa {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Nginx program is stop
httpd: Syntax error on line 343 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot open shared object file: No such file or directory
Shutting down MySQL. SUCCESS!
MySQL program is stop
Starting LNMPA...
Nginx start successfully!
httpd: Syntax error on line 343 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot open shared object file: No such file or directory
Starting MySQL. SUCCESS!
MySQL start successfully!
顺便再请教一下,先装 lnmp,然后升级nginx 1.0.6 php 5.3.6,接着装 apache 之后。
为什么会出现这种状况呢?谢谢喔 刚开始是nginx没有启动。
Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot open shared object file: No such file or directory是php编译时可能没有编译成功。 我也遇到过同样问题,我试试看能解决不 是不是没启动web,有个需要自己手动启动
页:
[1]