赞
踩
yum -y install firewalld
设置开机启用防火墙
systemctl enable firewalld.service
设置开机禁用防火墙
systemctl disable firewalld.service
启动防火墙
systemctl start firewalld
systemctl stop firewalld
重启防火墙
systemctl restart firewalld
检查防火墙状态
systemctl status firewalld
查看防火墙设置开机自启状态
systemctl is-enabled firewalld.service
firewall-cmd --state
打开单个端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。