centOS6.5关闭系统防火墙

关闭防火墙:

service iptables stop

永久关闭防火墙:

chkconfig iptables off

查看防火墙状态:

service iptables status

centOS版本不同,命令也不同。

CentOS7使用firewalld打开关闭防火墙与端口
1、firewalld的基本使用
启动:

systemctl start firewalld 

关闭:

systemctl stop firewalld 

查看状态:

systemctl status firewalld 

开机禁用 :

systemctl disable firewalld 

开机启用 :

systemctl enable firewalld 
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情图片

    暂无评论内容