1.下载keepalived安装包
官网下载:https://www.keepalived.org/download.html
2.上传到服务器并解压keepalived安装包
3.安装,默认安装到/etc/keepalived
cd keepalived ./configure make make install
4.注册为系统服务
cd keepalived/etc cp init.d/keepalived /etc/init.d/ cp sysconfig/keepalived /etc/sysconfig/ systemctl daemon-reload systemctl start keepalived.service