Last updated 5 years ago
利用Keepalived实现双机热备
进入到nginx容器安装keepalived
$ docker exec it n1 bash $ apt-get update $ apt-get install keepalived $ apt-get install vim
配置keepalived
网卡配置的是宿主机的网卡