1.查看防火墙状态
systemctl status firewalld
2.打开防火墙
systemctl start firewalld
3.查看防火墙的端口
firewall-cmd –list-ports
4.防火墙开放端口
firewall-cmd –zone=public –add-port=8080/tcp –permanent
firewall-cmd –zone=public –remove-port=3306/tcp –permanent
firewall-cmd –add-service=ftp –permanent
5.重启防火墙
firewall-cmd –reload
firewall-cmd 命令
最新推荐文章于 2024-09-30 06:15:00 发布