服务器防火墙开放端口需要用到的linxu命令
开启防火墙
systemctl start firewalld
查看防火墙状态
systemctl status firewalld
关闭防火墙
systemctl stop firewalld
查看已经开放的端口号
firewall-cmd --list-all
开放指定端口号
firewall-cmd --add-port=8080/tcp --permanent
重启防火墙
firewall-cmd --reload
systemctl start firewalld
systemctl status firewalld
systemctl stop firewalld
firewall-cmd --list-all
firewall-cmd --add-port=8080/tcp --permanent
firewall-cmd --reload