- 积分
- 126
- 威望
-
- 金钱
-
- 注册时间
- 2015-1-21
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2015-6-16 21:12:19
|
显示全部楼层
原帖由 licess 于 2015-6-16 17:13 发表 
重启完打不开可以 lnmp status看一下运行状态
运行状态都没问题,看一下iptables
/etc/init.d/iptables 不一定都有,centos下用service iptables
新下载的lnmp1.2的话应该iptables的都是没问题的
参考:http://www.vpser ...
中午全新安装的1.2
现在重启后 80端口是关闭
/sbin/iptables -A INPUT -p tcp --dport 80 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
这样可以打开了 就是不知道怎么保存。
CentOS7.x 64
/etc/rc.d/init.d/iptables save没有这个文件
CentOS上可以执行:service iptables save保存规则。 The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
[ 本帖最后由 moyin 于 2015-6-16 21:13 编辑 ] |
|