码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu上tomcat 启动成功但访问不了

时间:2015-09-08 12:48:04      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:

vi /etc/sysconfig/iptables加入你要访问的端口号

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8088 -j ACCEPT


重启服务:service iptables restart 

ubuntu上tomcat 启动成功但访问不了

标签:

原文地址:http://my.oschina.net/stonezing/blog/502673

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!