這篇文章主要介紹“keepalived的安裝部署方法”,在日常操作中,相信很多人在keepalived的安裝部署方法問(wèn)題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”keepalived的安裝部署方法”的疑惑有所幫助!接下來(lái),請(qǐng)跟著小編一起來(lái)學(xué)習(xí)吧!
郊區(qū)ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書(shū)未來(lái)市場(chǎng)廣闊!成為創(chuàng)新互聯(lián)公司的ssl證書(shū)銷售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書(shū)合作)期待與您的合作!
1.安裝依賴
yum -y install gcc gcc-c++ autoconf automake make yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
2.下載安裝包
官網(wǎng)地址:https://www.keepalived.org/download.html
3.解壓
tar -xzvf keepalived-2.0.17.tar.gz
4.切換目錄
cd keepalived-2.0.17
5.配置安裝
./configure --prefix=/usr/local/keepalived
6.編譯
make && make install
7.配置服務(wù)
mkdir /etc/keepalived cp /usr/local/keepalived/etc/keepalived/keepalived.conf /etc/keepalived/ ln -s /usr/local/keepalived/sbin/keepalived /sbin/
常用命令
1.systemctl start keepalived.service 啟動(dòng) 2.systemctl restart keepalived.service 重啟 3.systemctl stop keepalived.service 關(guān)閉 4.systemctl enable keepalived.service 設(shè)置開(kāi)機(jī)自動(dòng)啟動(dòng) 5.systemctl disable keepalived.service 取消開(kāi)機(jī)自動(dòng)啟動(dòng)
到此,關(guān)于“keepalived的安裝部署方法”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!