防火墙开机启动
systemctl enable firewalld.service
查看防火墙状态
firewall-cmd --state
开启防火墙
systemctl start firewalld.service
开放8080,3306,6379端口
firewall-cmd --zone=public --add-port=8080/tcp --permanent firewall-cmd --zone=public --add-port=3306/tcp --permanent firewall-cmd --zone=public --add-port=6379/tcp --permanent
重启
systemctl restart firewalld.service
重新加载载
firewall-cmd --reload