安装keepalived

bin目录下是genhash
sbin目录下是keepalived

1.下载安装包


wget https://www.keepalived.org/software/keepalived-2.0.17.tar.gz

2.安装编译依赖


yum -y install gcc

3.解压安装


tar -xzvf keepalived-2.0.17.tar.gz
cd keepalived-2.0.17
mkdir /usr/local/myapps/
./configure  --prefix=/usr/local/myapps/keepalivedrun --sysconf=/etc  --sbindir=/usr/sbin/ --bindir=/usr/bin
make && make install

4.启动keepalived


systemctl enable keepalived && systemctl restart keepalived && systemctl status keepalived

posted @ 2019-07-22 12:54  小白的日常  阅读(319)  评论(0编辑  收藏  举报