[Linux] Install keepalived on CentOS
来源:互联网 发布:wps for mac破解版下载 编辑:程序博客网 时间:2024/06/02 07:43
Installing
Although installing keepalived
through yum
is quite convenient, the package is often out-of-date.
So it is recommended to install it from source code. To do so, you can follow the instructions here.
If you already installed it through yum
, you can upgrade to a new version by
1. Download the source code from official website
2. Extract the files via tar xvf <package_name>
3. Change the working directory to the extracted folder
4. Run ./configure
5. Run make && make install
You will notice that the newer version of keepalived
is installed under /usr/local/sbin
and the system is still using the old version located at /usr/sbin
So, you need to
- rename the old one
mv /usr/sbin/keepalived /usr/sbin/keepalived.old
- create a symbolic link for the new one
ln -s /usr/local/sbin/keepalived /usr/sbin/
Configuring
The configuration needed to get it working is simple, just reference the previous link.
Attention
If you have firewalld
running, you will need to add the following rule in order to permit the vrrp control traffic.
firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" destination address="224.0.0.18" protocol value="ip" accept' --permanent
- [Linux] Install keepalived on CentOS
- Linux - Install metasploit on CentOS
- Install Cassandra on Linux(CentOS)
- install mysql on Linux CentOs
- Install ZABBIX agent on Linux (CentOS)
- install keepalived on RedHat/CentOS to provide IP failover for web cluster
- lvs+keepalived on centos 6.3
- install qpidd on centos
- Install opencv on Centos
- Install Composer on CentOS
- Install NTFS on CentOS
- 《Linux安装openoffice 服务》Install OpenOffice on Linux(CentOS)
- CentOS 6.3 install mysql & tomcat & keepalived
- Centos 7.3 Install Mysql+keepalived 高可用
- How to install Jboss + DB2 on CentOS Linux 4.5 ?
- Install MongoDB on RedHat Enterprise, CentOS, or Fedora Linux
- Exception occurred when install filezilla on Linux(CentOS)
- Install MongoDB on Red Hat Enterprise or CentOS Linux
- [PHP实例] PHP 四种基本排序算法的代码实现
- iOS面试必看,最全梳理
- c# 调用 dephi 字符串传输
- stat,fstat以及lstat函数
- 线段树+二分 hdu5649 DZY Loves Sorting
- [Linux] Install keepalived on CentOS
- 最短路问题(0(n*log(n)))
- 用VC++实现一个文本文件阅读器
- 学习Discuz! X3.2记录:快速回复插件制作过程,涉及记录hookid(好麻烦,先在hookid位置输出aaabbb)
- visibility:collapse在不同浏览器
- Centos7.0安装Mysql5.7.11
- Problem A: 童年生活二三事
- Sublime Text 3 菜单栏及便捷操作
- 如何做cramfs只读文件系统的在线更新