VPS侦探论坛

 找回密码
 注册
查看: 5765|回复: 9

重启VPS后,LNMP 不工作,

[复制链接]
发表于 2013-6-25 16:39:16 | 显示全部楼层 |阅读模式

以前的VPS 用的很正常,后面换了个好点的VPS ,然后就出现这个问题,,重启VPS ,网站环境都停止工作了,我也不晓得怎么查问题,只有把LNMP 重新安装一下,网站才能正常打开
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-6-25 21:35:29 | 显示全部楼层


重启vps 网站打不开可能是没启动,或配置文件出错 /usr/local/nginx/sbin/nginx -t测试配置文件
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-6-26 16:35:27 | 显示全部楼层

测试结果如下


[root@linfeng ~]# /usr/local/nginx/sbin/nginx -t
nginx: [warn] 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
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-6-26 19:55:52 | 显示全部楼层

回复 3# 的帖子




提示的域名添加了多次
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-6-26 22:09:13 | 显示全部楼层

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

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

发表于 2013-6-27 07:49:50 | 显示全部楼层

除配置错误的原因可能还有其他原因,常见问题有说明
 楼主| 发表于 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 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-6-28 11:08:40 | 显示全部楼层

那说明常见问题里无法访问部分你没看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-6-28 15:48:23 | 显示全部楼层


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

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

发表于 2013-6-28 18:00:08 | 显示全部楼层



vps上curl localhost看看

如果是国内的服务器,可能有白名单,ip无法直接访问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-24 17:18 , Processed in 0.028307 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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