本机浏览器访问不到Linux虚拟机中的nginx开启页面

1、使用该执行打开端口文件
vi /etc/sysconfig/iptables

2、随便复制一行现有内容,将你要打开的端口设置上就行了,这里是打开80端口
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

3、输入:wq保存退出
4、service iptables restart,使设置生效


参考:https://zhidao.baidu.com/question/646656030269651725.html

查找nginx安装路径 find / -name nginx 
posted @ 2017-04-05 14:42  我忘不掉  阅读(8589)  评论(0编辑  收藏  举报