CentOS防火墙相关命令

一、安装防火墙rpm -q centos-release如果没有安装rpm则先安装rpmyum install rpm二、查看防火墙状态systemctl status firewalld三、启动防火墙systemctl start firewalld四、查看已开放端口firewall-cmd -