防火墙的一些操作
#查看防火墙状态 systemctl status firewalld #开启防火墙 systemctl start firewalld #关闭防火墙 systemctl stop firewalld #开启防火墙 service firewalld start #添加指定需要开放的端口: firewall-cmd --add-port=8090/tcp --permanent #重载入添加的端口: firewall-cmd --reload #查看所有开放的端口 firewall-cmd --list-all
标签:--,cmd,防火墙,firewalld,centos7,firewall,systemctl From: https://www.cnblogs.com/yuandaozhe/p/17652467.html