Linux防火墙常用命令
查看防火墙状态:systemctl status firewalld.service
开启防火墙:systemctl start firewalld.service
关闭防火墙:systemctl stop firewalld.service
重启防火墙:systemctl restart firewalld.service
查看已经放的端口:firewall-cmd –list-ports
开放指定端口firewall-cmd –zone=public –add-port=8083/tcp –permanent
正文完