ubuntu16.0.4安装keepalived

1、下载文件:

wget http://www.keepalived.org/software/keepalived-1.2.24.tar.gz


2、解压文件:

tar -zxvf keepalived-1.2.24.tar.gz

3、创建一个文件夹keepalived移动解压文件至文件夹:

mv  keepalived-1.2.24 /home/keepalived

4、安装:

sudo apt-get install keepalived

5、复制配置文件至etc

cp /home/keepalived/keepalived-1.2.24/keepalived/etc/keepalived/keepalived.conf /etc/keepalived

6.修改配置文件:

vi etc/keepalived/keepalived.conf

6、启动keepalived服务:

systemct start keepalived

 

 

如果是backup机器在配置文件里面吧master改为backup。

 

你可能感兴趣的:(ubuntu16.0.4安装keepalived)