Keepalived安装
安裝步驟
安裝依賴
上傳解壓
編譯執行
其他配置
第一步
安裝依賴
yum -y install kernel-devel*
yum -y install openssl-*
yum -y install popt-devel
yum -y install lrzsz
yum -y install openssh-clients
yum -y install libnl libnl-devel popt
第二步
上傳文件
拷貝
指定目錄
解壓
tar -zxvf keepalived-1.2.15.tar.gz
第三步
執行
配置命令
./configure –prefix=/usr/local/keepalived
編譯
Make
make install
安裝完成
第四步
其他配置
拷貝執行文件
cp /usr/local/keepalived/sbin/keepalived /usr/sbin/
加入開機啟動項
cp /usr/local/keepalived/etc/rc.d/init.d/keepalived /etc/init.d/keepalived
加入網卡配置
cp /usr/local/keepalived/etc/sysconfig/keepalived /etc/sysconfig/
創建keepalived文件夾
mkdir -p /etc/keepalived
拷貝配置文件
cp /usr/local/keepalived/etc/keepalived/keepalived.conf /etc/keepalived/keepalived.conf
添加可執行權限
chmod +x /etc/init.d/keepalived
配置完成
總結
以上是生活随笔為你收集整理的Keepalived安装的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Keepalived双机热备
- 下一篇: Keepalived运行命令