1.查看firewalld状态
systemctl status firewalld.service
2.关闭防火墙
systemctl stop firewalld
3.开启防火墙
systemctl start firewalld
4.开机自动关闭防火墙
systemctl disable firewalld
5.查看开机是否启动防火墙
chkconfig --list|grep network
6.开机自动启动防火墙
systemctl enable firewalld
1.查看firewalld状态
systemctl status firewalld.service
2.关闭防火墙
systemctl stop firewalld
3.开启防火墙
systemctl start firewalld
4.开机自动关闭防火墙
systemctl disable firewalld
5.查看开机是否启动防火墙
chkconfig --list|grep network
6.开机自动启动防火墙
systemctl enable firewalld
本文标题:centos设置防火墙
本文链接:https://www.haomeiwen.com/subject/sgemyctx.html
网友评论