keepalived

 cd /usr/local/src
# 下载keepalived安装包
wget https://www.keepalived.org/software/keepalived-2.2.3.tar.gz
tar zxvf keepalived-2.2.3.tar.gz
cd keepalived-2.2.3
./configure --prefix=/usr/local/keepalived
make && make install
 

#复制默认配置文件到默认路径  
mkdir /etc/keepalived  
cp /usr/local/keepalived/etc/keepalived/keepalived.conf /etc/keepalived/  
#复制 keepalived 服务脚本到默认的地址  
cp /usr/local/keepalived/etc/rc.d/init.d/keepalived /etc/init.d/  
cp /usr/local/keepalived/etc/sysconfig/keepalived /etc/sysconfig/  
ln -s /usr/local/sbin/keepalived /usr/sbin/  
ln -s /usr/local/keepalived/sbin/keepalived /sbin/  
 

sudo apt-get install libssl-dev

你可能感兴趣的:(服务器,linux,运维)