码迷,mamicode.com
首页 > 其他好文 > 详细

centos开放80端口

时间:2017-05-31 14:04:43      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:分享   iptables   img   --   table   png   技术   src   accept   

增加一条规则

#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT 

查看有没有开放80端口

#/etc/init.d/iptables status 

技术分享

这样80端口就开放了

centos开放80端口

标签:分享   iptables   img   --   table   png   技术   src   accept   

原文地址:http://www.cnblogs.com/hltswd/p/6923254.html

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