解决FirewallD is not running问题
2021-02-13 23:47:13
by 解决FirewallD is not r

打印???
天盟网(http://www.aksky.com)
技术文章(http://www.aksky.comhref=category.php?cid=1)

解决FirewallD is not running问题

 

centos7

1.查看firewalld状态:systemctl status firewalld,如果是dead状态,即防火墙未开启。

2.开启防火墙systemctl start firewalld

3.确认firewalld状态:systemctl status firewalld

4.开放默认端口号 3306,出现success表示成功


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

 

关闭防火墙:systemctl stop firewalld

 



Copyright © 2002-2022 http://www.aksky.com
All rights reserved.

备案号:浙ICP备17002154号-2 Powered by: myarticle.com.cn Version 1.0dev
Processed Time: 0.0017 s Querys: 4 [ Gzip Level 0 ]