不断积累,必然飞跃,突破随之!

相信自己,开拓生活!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

keepalived 高可用配置

Posted on 2017-08-20 20:18  Tangyuan2017  阅读(180)  评论(0编辑  收藏  举报

下载地址:http://www.keepalived.org/software/keepalived-1.2.12.tar.gzht

安装方法:
1. ./configure

可能出现的错误
!!! OpenSSL is not properly installed on your system. !!!
!!! Can not include OpenSSL headers files.
运行keepalived的 ./configure时,ubuntu报错:OpenSSL is not properly installed on your system.此时需要安装OpenSSL组件,执行命令如下:
sudo apt-get install libssl-dev


2. make
The program 'make' can be found in the following packages:
* make
* make-guile
Try: apt install <selected package>

apt-get install make

3. make install

默认安装到 /usr/local/sbin

#make install

4. 修改配置文件
/usr/local/etc/keepalived/keepalived.conf

5. 如果要开启发送邮件,请安装并启动sendmail服务