centos设置防火墙
2019-09-30 本文已影响0人
奥斯卡布奇诺
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