安装keepalived
需要先安装openssl-devel
需要的依赖包
需要的依赖包 20 个左右:
libcom_err-1.41.12-22.el6.x86_64.rpm
libselinux-2.0.94-5.8.el6.x86_64.rpm
keyutils-1.4-5.el6.x86_64.rpm
krb5-libs-1.10.3-42.el6.x86_64.rpm
libkadm5-1.10.3-65.el6.x86_64.rpm
libss-1.41.12-22.el6.x86_64.rpm
openssl-1.0.1e-42.el6.x86_64.rpm
keyutils-libs-devel-1.4-5.el6.x86_64.rpm
e2fsprogs-libs-1.41.12-22.el6.x86_64.rpm
libcom_err-devel-1.41.12-22.el6.x86_64.rpm
libsepol-devel-2.0.41-4.el6.x86_64.rpm
libselinux-devel-2.0.94-5.8.el6.x86_64.rpm
krb5-devel-1.10.3-42.el6.x86_64.rpm
zlib-devel-1.2.3-29.el6.x86_64.rpm
openssl-devel-1.0.1e-42.el6.x86_64.rpm
e2fsprogs-1.41.12-22.el6.x86_64.rpm
krb5-workstation-1.10.3-42.el6.x86_64.rpm
keyutils-libs-1.4-5.el6.x86_64.rpm
libselinux-python-2.0.94-5.8.el6.x86_64.rpm
libselinux-utils-2.0.94-5.8.el6.x86_64.rpm
下载依赖包
离线安装,本来就让人奔溃了。。。。。发现一个更奔溃的问题
截止发文,查看 http://mirrors.aliyun.com/centos/6/和http://mirrors.163.com/centos/6/ 发现,6的依赖包已经不提供了。。。。。。
我他妈的心态蹦了啊。。。没办法,又花了好长在网上找了俩网址(我也忘了有多长,大概有那么长)
https://vault.centos.org/6.7/os/x86_64/Packages/、http://mirrors.sohu.com/centos/6/os/x86_64/Packages/
各位童鞋,是不是也快奔溃了,别急,这边已经从上面提供的两个网址找到了,打包上传到了百度云:
openssl-devel6.tar.gz 提取码:2fm5
下载好了之后,解压并cd 到 openssl-devel6
目录下,执行下列命令安装。
安装
执行下列命令安装,libkadm5-1.10.3-65.el6.x86_64.rpm
、krb5-libs-1.10.3-65.el6.x86_64.rpm
这两个要一起安装
rpm -ivh libcom_err-1.41.12-22.el6.x86_64.rpm
rpm -ivh libselinux-2.0.94-5.8.el6.x86_64.rpm
rpm -ivh keyutils-1.4-5.el6.x86_64.rpm
rpm -ivh --force --nodeps libkadm5-1.10.3-65.el6.x86_64.rpm krb5-libs-1.10.3-65.el6.x86_64.rpm
rpm -ivh libss-1.41.12-22.el6.x86_64.rpm
rpm -ivh openssl-1.0.1e-42.el6.x86_64.rpm
rpm -ivh keyutils-libs-devel-1.4-5.el6.x86_64.rpm
rpm -ivh e2fsprogs-libs-1.41.12-22.el6.x86_64.rpm
rpm -ivh libcom_err-devel-1.41.12-22.el6.x86_64.rpm
rpm -ivh libsepol-devel-2.0.41-4.el6.x86_64.rpm
rpm -ivh libselinux-devel-2.0.94-5.8.el6.x86_64.rpm
rpm -ivh krb5-devel-1.10.3-42.el6.x86_64.rpm
rpm -ivh zlib-devel-1.2.3-29.el6.x86_64.rpm
rpm -ivh openssl-devel-1.0.1e-42.el6.x86_64.rpm
rpm -ivh e2fsprogs-1.41.12-22.el6.x86_64.rpm
rpm -ivh krb5-workstation-1.10.3-42.el6.x86_64.rpm
rpm -ivh keyutils-libs-1.4-5.el6.x86_64.rpm
rpm -ivh libselinux-python-2.0.94-5.8.el6.x86_64.rpm
rpm -ivh libselinux-utils-2.0.94-5.8.el6.x86_64.rpm
好了,到了这里,具体安装keepalived可以参考 我另一篇博客 Keepalied + nginx 高可用主备模式、双主模式
博客参考自:https://blog.csdn.net/afreon/article/details/77866695