生产环境禁止关闭防火墙,只能开放对应端口
开启8090端口:
[root@BetaD home]# firewall-cmd --add-port=8090/tcp --permanent
删除端口:
[root@BetaD home]# firewall-cmd --zone=public --remove-port=8090/tcp --permanent
刷新:
[root@BetaD home]# firewall-cmd --reload
查询端口list:
[root@BetaD home]# firewall-cmd --list-ports