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 gran
1.修改文件/etc/sysconfig/iptables [root@zsq ~]# cd /etc/sysconfig/[root@zsq sysconfig]# vi iptables 文件内容如下,注意红色一行是新加的,目的是对外界开放8080端口 # Firewall configuration written by system-config-firewall# Manual customization of this file is not recommended.*filter: