lvs + keepalived 安装指南

为什么80%的码农都做不了架构师?>>>   hot3.png

#lvs + keepalived 安装指南

##1. lvs安装

yum install ipvsadm

##2. keepalived安装

wget http://www.keepalived.org/software/keepalived-1.2.24.tar.gz
tar -zxvf keepalived-1.2.24.tar.gz
cd keepalived-1.2.15
./configure --sysconf=/etc/
make && make install
ln -s /usr/local/sbin/keepalived /sbin/
这一步很重要,不执行ln -s会报错“Starting keepalived: /bin/bash: keepalived: command not found”

service keepalived start //启动服务
service keepalived stop //关闭服务

或 yum install keepalived

转载于:https://my.oschina.net/dongwt/blog/877612

你可能感兴趣的:(lvs + keepalived 安装指南)