0
点赞
收藏
分享

微信扫一扫

Haproxy+Keeplived docker重启

SPEIKE 2022-07-12 阅读 122


docker start haproxy容器id 

#测试是否成功启动

ping haproxy容器的ip

注意:此时虽然启动了haproxy,但Keeplived 必须进入haproxy容器中启动才行

#进入h1容器

docker exec -it h1 bash

#启动Keepalived

service keepalived start

#宿主机执行ping命令

ping 172.18.0.201

举报

相关推荐

0 条评论