VPS侦探论坛

 找回密码
 注册
查看: 10150|回复: 4

nginx502重启后再也无法访问,浏览器提示服务器拒绝连接

[复制链接]
发表于 2011-7-20 17:23:29 | 显示全部楼层 |阅读模式

我用的是 lnmpa,话说之前一直正常运行的,然后突然中午开始 nginx502 了,我就通过 linode 的面板重启了 vps,但是重启之后用浏览器访问就开始显示服务器拒绝连接了。

错误 102 (net::ERR_CONNECTION_REFUSED):服务器拒绝了连接。

额,我没有开 iptables,而且重启 lnmpa 的时候看起来不大正常。

[root@li129-17 cmd]# 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!

[root@li129-17 cmd]# 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*[php-fpm]
     ├─2*[sendmail]
     ├─sshd─┬─sshd───bash───top
     │      └─sshd───bash───pstree
     ├─syslogd
     ├─udevd

[root@li129-17 cmd]# df -lh
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda             4.0G  2.9G  986M  75% /
tmpfs                 249M     0  249M   0% /dev/shm

这些是相关信息,因为之前一直正常,其他啥都没动,只是重启了一下就这样了。求助啊啊啊 (PД`q。)·。'゜泪奔中……
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-7-20 18:40:56 | 显示全部楼层


[root@li129-17 ~]# 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 之后。
为什么会出现这种状况呢?谢谢喔
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-7-20 19:51:52 | 显示全部楼层

刚开始是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编译时可能没有编译成功。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-7-21 12:51:53 | 显示全部楼层



我也遇到过同样问题,我试试看能解决不
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-7-21 17:05:56 | 显示全部楼层

是不是没启动web,有个需要自己手动启动

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

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-27 16:03 , Processed in 0.026876 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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