全球主机交流论坛

标题: LNMP的,一切看起来都正常,但无法访问网站 [打印本页]

作者: 缺徳中国    时间: 2011-11-26 23:34
标题: LNMP的,一切看起来都正常,但无法访问网站
VPS IP地址 Ping 正常
LNMP 状态:

[root@vpsname ~]# /root/lnmp status
=========================================================================
Manager for LNMP V0.7  ,  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 runing!
php-fpm is stop!
SUCCESS! MySQL running (988)
作者: 缺徳中国    时间: 2011-11-26 23:35
网站只是做图片服务器,不知什么时候无法访问的。

VPS重启过,LNMP 重启过,都不行
作者: 乌鸦    时间: 2011-11-26 23:35
php-fpm is stop!
作者: 缺徳中国    时间: 2011-11-26 23:36
Unable to connect
      
      
      
      
      
        
        
          Firefox can't establish a connection to the server at 66.29.*.*.
            
        

  The site could be temporarily unavailable or too busy. Try again in a few
    moments.
  If you are unable to load any pages, check your computer's network
    connection.
  If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.
作者: 乌鸦    时间: 2011-11-26 23:36
你应该贴这个命令后的信息。。/root/lnmp restart
作者: 缺徳中国    时间: 2011-11-26 23:37
原帖由 乌鸦 于 2011-11-26 23:35 发表
php-fpm is stop!


网站只是做图片服务器, 没有任何PHP,这个应该无关吧
作者: kwx    时间: 2011-11-26 23:37
原帖由 乌鸦 于 2011-11-26 23:36 发表
你应该贴这个命令后的信息。。/root/lnmp restart

作者: 乌鸦    时间: 2011-11-26 23:38
额,不是502。。IPTABLES状态呢。。
作者: 缺徳中国    时间: 2011-11-26 23:39
原帖由 乌鸦 于 2011-11-26 23:36 发表
你应该贴这个命令后的信息。。/root/lnmp restart


[root@vpsname ~]# /root/lnmp restart
=========================================================================
Manager for LNMP V0.7  ,  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}
=========================================================================
Stoping LNMP...
Nginx program is stop
PHP-FPM program is not runing!
Shutting down MySQL. SUCCESS!
MySQL program is stop
Starting LNMP...
[warn]: conflicting server name "image.mydomain.com" on 0.0.0.0:80, ignored
Nginx start successfully!
/root/lnmp: line 46: /usr/local/php/sbin/php-fpm: No such file or directory
PHP-FPM start successfully!
Starting MySQL. SUCCESS!
MySQL start successfully!
作者: 缺徳中国    时间: 2011-11-26 23:43
原帖由 乌鸦 于 2011-11-26 23:38 发表
额,不是502。。IPTABLES状态呢。。


是这个问题

怎么能自动关闭 IPTABLES 服务?不然每次商家服务器重启都会出问题
作者: 乌鸦    时间: 2011-11-26 23:44
先试试
/etc/init.d/iptables stop
能不能访问。。。
能的话,继续下面
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart
作者: hotsnow    时间: 2011-11-26 23:46
chkconfig iptables off
作者: 乌鸦    时间: 2011-11-26 23:48
我看还是开着好。。自己添加端口好了。。
作者: 店长推荐    时间: 2011-11-27 02:01
yum remove iptables




欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/) Powered by Discuz! X3.4