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

0003防火墙管理

时间:2018-07-26 16:42:10      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:ble   put   reload   stop   端口   centos   restart   chkconfig   centos7   

1、防火墙服务管理
 关闭防火墙
 systemctl stop firewalld.service;
 查看防火墙状态
 service firewalld status;
 禁止启动
 chkconfig firewalld off;
2、开发端口(方式一,centos7)
 firewall-cmd --zone=public --add-port=3690/tcp --permanent
 firewall-cmd --reload

3、开发端口cnetos6
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/etc/rc.d/init.d/iptables save
service iptables restart

0003防火墙管理

标签:ble   put   reload   stop   端口   centos   restart   chkconfig   centos7   

原文地址:https://www.cnblogs.com/linux777/p/9372485.html

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