CentOS 7離線安裝Keepalived

2021-10-03 04:18:34 字數 1130 閱讀 6267

/home/install_package/keepalived為例

1、將keepalived-2.0.10.tar.gz上傳到/home/install_package/keepalived

2、在資料夾下執行tar -zxvf keepalived-2.0.10.tar.gz解壓安裝包

3、在資料夾下執行mkdir vip建立編譯路徑

4、cd keepalived-2.0.10後執行./configure --prefix=/home/install_package/keepalived/vip進行編譯

5、之後執行make && make install,執行完畢後,進入/home/install_package/keepalived/vip可以看到:

6、最後在/home/install_package/keepalived執行以下命令

# cp keepalived-2.0.10/keepalived/etc/init.d/keepalived /etc/init.d/

# cp keepalived-2.0.10/keepalived/etc/sysconfig/keepalived /etc/sysconfig/

# cp vip/sbin/keepalived /usr/local/sbin/

# mkdir /etc/keepalived

# cp vip/etc/keepalived/keepalived.conf /etc/keepalived/

執行systemctl start keepalived,隨後執行systemctl status keepalived可以看到:

CentOS7離線安裝Docker

安裝過程中遇到的問題 下面描述了如何在centos7離線安裝docker。建議先閱讀docker官方離線安裝指南 參考下面的文章將iso光碟印象檔案設定為本地yum源 在vmware中設定iso光碟映象為本地yum源 在上面的目錄下,執行 sudo yum install rpm因為前面已經設定了本...

centos7安裝離線ntp

autogen libopts 5.18 5.el7.x86 64.rpm ntpdate 4.2.6p5 28.el7.centos.x86 64.rpm ntp 4.2.6p5 28.el7.centos.x86 64.rpm cd 到存放安裝包的目錄執行如下3天命令 rpm ivh autog...

centos7離線安裝ansible

centos7離線安裝ansible 2 啟動ssh服務。3 收集金鑰檔案。示例 ssh keygen t rsa p 寫入信任檔案 將 root ssh id rsa storm1.pub分發到其他伺服器,並在所有伺服器上執行如下指令 cat root ssh id rsa storm1.pub ...