全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2160|回复: 13
打印 上一主题 下一主题

[疑问] LNMP的,一切看起来都正常,但无法访问网站

[复制链接]
跳转到指定楼层
1#
发表于 2011-11-26 23:34:47 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
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)
14#
发表于 2011-11-27 02:01:09 | 只看该作者
yum remove iptables
13#
发表于 2011-11-26 23:48:19 | 只看该作者
我看还是开着好。。自己添加端口好了。。
12#
发表于 2011-11-26 23:46:52 | 只看该作者
chkconfig iptables off
11#
发表于 2011-11-26 23:44:52 | 只看该作者
先试试
/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

评分

参与人数 1威望 +5 收起 理由
缺徳中国 + 5 精品文章

查看全部评分

10#
 楼主| 发表于 2011-11-26 23:43:00 | 只看该作者
原帖由 乌鸦 于 2011-11-26 23:38 发表
额,不是502。。IPTABLES状态呢。。


是这个问题

怎么能自动关闭 IPTABLES 服务?不然每次商家服务器重启都会出问题
9#
 楼主| 发表于 2011-11-26 23:39:32 | 只看该作者
原帖由 乌鸦 于 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!
8#
发表于 2011-11-26 23:38:14 | 只看该作者
额,不是502。。IPTABLES状态呢。。
7#
发表于 2011-11-26 23:37:53 | 只看该作者
原帖由 乌鸦 于 2011-11-26 23:36 发表
你应该贴这个命令后的信息。。/root/lnmp restart
6#
 楼主| 发表于 2011-11-26 23:37:13 | 只看该作者
原帖由 乌鸦 于 2011-11-26 23:35 发表
php-fpm is stop!


网站只是做图片服务器, 没有任何PHP,这个应该无关吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-27 16:27 , Processed in 0.063234 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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