最近使用 OpenEuler 部署项目,发现防火墙放通端口的方法找不到,因此在这里记录: [root@localhost Porting-advisor_2.5.RC1_linux-x86-64]# firewall-cmd –query-port=8084/tcp –permanent no [root@localhost Porting-advisor_2.5.RC1_linux-x86-64]# firewall-cmd –add-port=8084/tcp –permanent success [root@localhost Porting-advisor_2.5.RC1_linux-x86-64]# firewall-cmd –reload success [root@localhost Porting-advisor_2.5.RC1_linux-x86-64]# firewall-cmd –query-port=8084/tcp –permanent yes

最近使用 OpenEuler 部署项目,发现防火墙放通端口的方法找不到,因此在这里记录:

1
2
3
4
5
6
7
8
[root@localhost Porting-advisor_2.5.RC1_linux-x86-64]# firewall-cmd --query-port=8084/tcp --permanent
no
[root@localhost Porting-advisor_2.5.RC1_linux-x86-64]# firewall-cmd --add-port=8084/tcp --permanent
success
[root@localhost Porting-advisor_2.5.RC1_linux-x86-64]# firewall-cmd --reload
success
[root@localhost Porting-advisor_2.5.RC1_linux-x86-64]# firewall-cmd --query-port=8084/tcp --permanent
yes