关于虚拟机重启后docker的Mysql无法相连的措施

关闭防火墙

systemctl stop firewalld.service

重启docker

` sudo systemctl restart docker `

清除docker的iptable规则

sudo iptables -F sudo iptables -X sudo iptables -t nat -F sudo iptables -t nat -X sudo iptables -t mangle -F sudo iptables -t mangle -X

posted @ 2024-07-21 08:34  浮白呀  阅读(67)  评论(0)    收藏  举报