Use the installation disk of redhat7.2 as the yum source to install keepalived

Mount the system CD and mount it to the /mnt directory :

[root@ncapp2 ~]# mount /dev/cdrom /mnt

 

mount: block device /dev/sr0 is write-protected, mounting read-only

 

Configure the local yum source :

[root@localhost yum.repos.d]# vi /etc/yum.repo.d/base.repo
[Packages]
name=Server
baseurl = file: /// min
gpgcheck=0

[HighAvailability]
name=HighAvailability
baseurl=file:///mnt/addons/HighAvailability
gpgcheck=0

 Note: Only the file location containing  repodata/ repomd.xml can be used as  baseurl. The two baseurls above have this file.

 

Install:

  yum install keepalived.xxx (xxx is the version number, press tab will prompt it)

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326288337&siteId=291194637