CentOS设置防火墙

查看防火墙状态

firewall-cmd --state

停止firewall

systemctl stop firewalld.service

启动firewall

systemctl start firewalld.service

禁止firewall开机启动

systemctl disable firewalld.service 

开启firewall开机启动

systemctl enable firewalld.service
posted @ 2020-05-16 20:33  xl4ng  阅读(112)  评论(0编辑  收藏  举报