当前位置:网站首页 / Linux / 正文

CentOS开启端口教程

时间:2016年12月18日 | 作者 : liuhui | 分类 : Linux | 浏览: 9210次 | 评论 3

阿里云限量代金券 | 此广告位出租25元/月

1.jpg

运行

iptables -I INPUT -p tcp -m multiport –dport 80,443,8080,3306,8989,9001,9002,9003,53 -j ACCEPT;


保存

service iptables save;service iptables restart;

查看

iptables -nvL

80,443,8080,3306,8989,9001,9002,9003,53是你要开的端口


原创文章转载请注明:转载自:CentOS开启端口


推荐您阅读更多有关于“”的文章

猜你喜欢

网站分类
关注电脑博士
友情链接

分享:

支付宝

微信