有2台机器,每台都有1个zabbix-server,然后再每台上再装一个keepalived
https://www.keepalived.org/download.html
1,创建安装路径
mkdir /usr/share/keepalived/
2,在这个安装路径下面下载keepalived的软件包
我选的版本是1.3.5,你们要别的版本可以去官网下载页面找所需版本。
wget https://www.keepalived.org/software/keepalived-1.3.5.tar.gz
3,解压缩软件包
tar -xvzf keepalived-1.3.5.tar.gz
再进入解压后的文件夹
cd keepalived-1.3.5
4,基础环境软件包安装
大概率你们解压后再安装keepalived会报错,执行一下这句
yum install gcc-c++ openssl-devel libnl libnl-devel libnfnetlink-devel -y
5, 执行/usr/share/keepalived/keepalived-1.3.5文件夹下面的configure
./configure --prefix=/usr/apps/keepalived --sysconf=/etc
6,编译
make && make install
安装完成可以看到/usr/apps/keepalived 多了三个目录 sbin bin share。
ls /usr/apps/keepalived
参考
https://blog.csdn.net/Jailman/article/details/128528844?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171773790216800225555884%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=171773790216800225555884&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2alltop_positive~default-1-128528844-null-null.142v100control&utm_term=keepalived&spm=1018.2226.3001.4187