windows 访问 CentOS 的防火墙及其 网关开放
时间:2021-02-18 13:28:47
收藏:0
阅读:0
1.防火墙开放端口
firewall-cmd --zone=public --add-port=8848/tcp --permanent
firewall-cmd --list-ports
开放centOS 网关,远程连接
grant all privileges on *.* to ‘root‘@‘192.168.128.1‘ identified by ‘root‘ with grant option;
开放docker容器网关,使得运行的docker连接linux数据库mysql
grant all privileges on *.* to ‘root‘@‘172.17.0.1‘ identified by ‘root‘ with grant option;
评论(0)