VPS侦探论坛

标题: 服务器重启后ip访问不了网站 [打印本页]

作者: 176soku    时间: 2013-3-8 10:24
标题: 服务器重启后ip访问不了网站
安装lnmp0.9full访问ip没问题 mysql也没问题 php文件也可以执行

重启服务器 使用命令 init 6

访问ip不通 但是ping可以通

nginx状态
/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
作者: 176soku    时间: 2013-3-8 10:29
标题: 回复 1# 的帖子
好吧 我错了 有相关问题的可以看一下 算是引导帖吧

安装好后,端口正常,Ping正常,但是无法通过IP或域名访问网站

解决方法:一般都是因为iptables引起的,可以通过yum或apt-get删除iptables,或/etc/init.d/iptables stop 停止iptables。如果想保留iptables可以按这个教程添加上80端口。如果是国内的VPS或服务器不能IP直接访问很正常,国内一般都有白名单。(引自:http://lnmp.org/faq.html  常见问题)




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4