Linux香港云服务器查看防火墙已放行的端口

1.首先查看防火墙状态,看是否是开启的:firewall-cmd --state

Running/active都是开启

2.查看防火墙所有放行的端口:firewall-cmd --zone=public--list-ports