1. 程式人生 > >centos7 firewall-cmd 檢視及配置

centos7 firewall-cmd 檢視及配置

主要的命令:

sudo systemctl start firewalld

sudo systemctl stop firewalld

sudo systemctl enable firewalld

sudo firewall-cmd --list-all

sudo firewall-cmd --add-port=3306/tcp --permanent --zone=public

sudo firewall-cmd --remove-port=3306/tcp --permanent --zone=public