标签:centos7 默认 port lld start tcp stat man perm
CentOS7的默认防火墙为firewall,且默认是不打开的。
systemctl start firewalld # 启动friewall
systemctl status firewalld # 查看firewall启动情况
firewall-cmd --zone=public --add-port=3306/tcp --permanent # 开启3306端口
firewalld # firewall-cmd --reload 重启
firewall-cmd --query-port=3306/tcp 查看3306端口是否开启
标签:centos7 默认 port lld start tcp stat man perm
原文地址:https://www.cnblogs.com/lab-zj/p/12023513.html