Make a local yum installation source under Linux

#Mount the iso file
1, copy the centos installation file CentOS-7.2-x86_64-DVD-1511.iso to any directory on the server
2, mkdir /mnt/iso
3, enter the directory where the iso file is located, and execute
mount CentOS-7.2-x86_64 -DVD-1511.iso -t iso9660 -o,loop /mnt/iso
4,df -hT or cd /mnt/iso to check if the iso file has been mounted to /mnt/iso #Replace the

local yum source
5,cd /etc /yum.repos.d/
6,vim local.repo
[local]
name=local
enabled=1
gpgcheck=0
baseurl=file:///mnt/iso #Install

openssl-devel
7,yum install openssl-devel -y

# Install keepalived
8, cd to keepalived directory
9, ./configure --prefix=/usr/local/keepalived
10, make && make install

Guess you like

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