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
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!