keepalived安装

1. 下载keepalived

wget http://www.keepalived.org/software/keepalived-1.1.17.tar.gz

2. 安装keepalived

解压下载好的文件:tar -zxvf keepalived-1.1.17.tar.gz

进入解压后目录安装:./configure && make && make install

3. 切换文件路径,方便管理

cp /usr/local/etc/rc.d/init.d/keepalived /etc/rc.d/init.d/

cp /usr/local/etc/sysconfig/keepalived /etc/sysconfig/

mkdir /etc/keepalived

cp /usr/local/etc/keepalived/keepalived.conf /etc/keepalived/

cp /usr/local/sbin/keepalived /usr/sbin/

4. 加入启动项

vim /etc/rc.local
/etc/init.d/keepalived start
weinxin
聂扬帆博客
一个分享IT运维相关工作经验和实战技巧的个人博客

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: