肉饼博客

Talk is cheap. Show me the code.

0%

CentOS防火墙开启端口

1.切换root
1
sudo su -
2.查看当前防火墙开启的端口
1
firewall-cmd --list-all
3.永久开启指定端口
1
firewall-cmd --permanent --add-port=8099/tcp
4.重启防火墙
1
firewall-cmd --reload