centos7防火墙启动关闭
1. 查看防火墙状态
systemctl status firewalld.service
2. 查看对外开放的端口号
firewall-cmd --list-ports
3. 添加端口号
firewall-cmd --zone=public --add-port=8888/tcp --permanent
4. 重启防火墙
firewall-cmd --reload
5. 关闭防火墙
systemctl stop firewalld.service
6. 开机关闭防火墙(永久关闭)
systemctl disable firewalld.service
7. 开机启动防火墙
systemctl enable firewalld.servbice