直接上乾貨!簡介就不說了,keepalivd做什麼應該已了解。
二、編譯步驟
2.1
#安裝依賴
yum install -y libnl-devel libnl3-devel libnfnetlink-devel
#解壓編譯
tar -zxvf keepalived-2.0.19.tar.gz
cd keepalived-2.0.19
./configure --prefix=/usr/local/keepalived #報openssl is not properly installed on your system. 時,安裝:yum -y install openssl-devel
make && make install
mkdir /etc/keepalived
cp /usr/local/keepalived/etc/keepalived/keepalived.conf /etc/keepalived/ #預設去/etc/keepalived下面找配置檔案
#編譯安裝完成完成
#設定開機自啟和systemctl
cp etc/init.d/keepalived /etc/init.d/ #原始碼編譯的目錄下面 /zywa/keepalived-2.0.17/keepalived/etc/init.d/keepalived
cp /usr/local/keepalived/sbin/keepalived /usr/sbin/
cp /usr/local/keepalived/etc/sysconfig/keepalived /etc/sysconfig/
chmod +x /etc/init.d/keepalived
chkconfig --add keepalived/systemctl enable keepalived
chkconfig keepalived on或者systemctl start keepalived
systemctl status keepalived
Ubuntu編譯安裝Keepalived
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!keepalived是一種防止單點故障的高可用解決方案。cd usr wget 解壓 tar zxvf keepalived 1.2.7.tar.gz 編譯之前需要安裝幾個程式庫 apt get install libssl devapt get ...
keepalived安裝部署
上傳伺服器安裝 tar xvf cd keepalived 1.3.5 configure prefix usr local keepalived make make install ln s usr local keepalived sbin usr bin ln s usr local keep...
Keepalived配置安裝
ubuntu 16.04.3系統兩台機器 vipip hostname port 192.168.0.200 192.168.0.129 master wjt ceshiji 80192.168.0.200 192.168.0.129 backup wjt ceshiji22 80wgettar z...