Centos 7 防火墙设置

2022年09月29日 459点热度 0人点赞 0条评论

首先检查
nignx -t
然后查看
ps -ef | grep nginx
查看版本
firewall-cmd --version

开启端口

查看防火墙状态
firewall-cmd --list-ports
查看防火墙状态
firewall-cmd --state
设置开机启动
systemctl enable firewalld