当前位置:首页 - MySql

linux centos7 mysql 防火墙开放3306端口

作者:高景洋 日期:2022-12-13 14:40:20 浏览次数:1365
1.开启端口3306
firewall-cmd --zone=public --add-port=3306/tcp --permanent

2.重启防火墙
firewall-cmd --reload

3.查看已经开放的端口

firewall-cmd --list-ports


本文永久性链接:
<a href="http://r4.com.cn/art218.aspx">linux centos7 mysql 防火墙开放3306端口</a>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 3.137.184.87 X-Real-Ip: 3.137.184.87 X-Domain: r4.com.cn X-Request: GET /art218.aspx HTTP/1.1 X-Request-Uri: /art218.aspx Connection: close Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) Accept-Encoding: gzip, br, zstd, deflate