CentOS7.5 firewalld端口开放

//启动firewalld


systemctl start firewalld


//开放3306端口(开放其他端口只需要修改端口号即可)


firewall-cmd --add-port=3306/tcp --permanent


//重新加载firewalld


firewall-cmd --reload


 

Other:

//关闭firewalld:


systemctl stop firewalld


//开机启动firewalld:


systemctl enable firewalld


//禁止开机启动firewalld:


systemctl disable firewalld


转载请注明来源:开发猿 » CentOS7.5 firewalld端口开放

赞 (16) 打赏

觉得文章有用就打赏一下哦

支付宝扫一扫打赏

微信扫一扫打赏