- 下载 https://www.keepalived.org/download.html
- 上传到服务器,例:/home/softwares/keepalived-2.0.18.tar.gz
- 解压
-tar -zxvf keepalived-2.0.18.tar.gz
- 进入到解压的目录,如下:
- 安装libnl/libnl-3依赖,
-yum -y install libnl libnl-devel
- 使用configure命令配置keepalived的安装目录位置和核心配置文件位置,
-./configure --prefix=/usr/local/keepalived --sysconf=/etc
-prefix,是keepalived的安装位置
-sysconf是keepalived核心配置文件的位置,固定的,改成其他位置回报错 - 安装,
make & make install
- 查看位置,
whereis keepalived
,如下则安装OK
keepalived-安装
最新推荐文章于 2024-08-12 10:36:57 发布