Centos7编译安装keepalived

yum -y install libnl libnl-devel libnfnetlink-devel
tar -zxvf keepalived-2.0.18.tar.gz
cd keepalived-2.0.18/
./configure --prefix=/usr/local/keepalived --sysconfdir=/etc
make && make install
cp -rf /usr/local/keepalived/sbin/keepalived /usr/sbin/
cp -rf keepalived/etc/init.d/keepalived /etc/init.d/
systemctl daemon-reload
systemctl start keepalived 修改配置文件后再启动
systemctl enable keepalived

你可能感兴趣的:(Centos7编译安装keepalived)