linfeng 发表于 2013-6-25 16:39:16

重启VPS后,LNMP 不工作,

以前的VPS 用的很正常,后面换了个好点的VPS ,然后就出现这个问题,,重启VPS ,网站环境都停止工作了,我也不晓得怎么查问题,只有把LNMP 重新安装一下,网站才能正常打开

licess 发表于 2013-6-25 21:35:29

重启vps 网站打不开可能是没启动,或配置文件出错 /usr/local/nginx/sbin/nginx -t测试配置文件

linfeng 发表于 2013-6-26 16:35:27

测试结果如下

# /usr/local/nginx/sbin/nginx -t
nginx: conflicting server name "www.a******ack.info" on 0.0.0.0:80, ignored
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

licess 发表于 2013-6-26 19:55:52

回复 3# 的帖子

提示的域名添加了多次

linfeng 发表于 2013-6-26 22:09:13

这重启后,网站打不开,没有关系吧

licess 发表于 2013-6-27 07:49:50

除配置错误的原因可能还有其他原因,常见问题有说明

linfeng 发表于 2013-6-28 03:43:45

我又重新装了系统Centos-6.4,安装后,还是一样LNMP不工作,把我的情况描述下,,
成功安装好LNMP0.9,重启VPS后 ,浏览器直接打开VPS IP ,无反应,无法进入数据页面。(不是403错误,而是根本没有显示)
输入 /usr/local/nginx/sbin/nginx -t
检查后,结果如下
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
=========================================================================
输入/root/lnmp status
状态如下
Nginx is runing!
php-fpm is runing!
SUCCESS! MySQL running (1481)

现在这问题究竟出在什么地方,请军哥分析下

[ 本帖最后由 linfeng 于 2013-6-28 04:24 编辑 ]

licess 发表于 2013-6-28 11:08:40

那说明常见问题里无法访问部分你没看

linfeng 发表于 2013-6-28 15:48:23

按照常见问题
/etc/init.d/iptables stop
关掉防火墙,问题依旧

licess 发表于 2013-6-28 18:00:08

vps上curl localhost看看

如果是国内的服务器,可能有白名单,ip无法直接访问
页: [1]
查看完整版本: 重启VPS后,LNMP 不工作,