网络源:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install epel-release-latest-7.noarch.rpm
yum repolist
本地源:
mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/Packages/* /mnt/yum
createrepo /mnt/yum
vim /etc/yum.repo.d/CentOS-Base.repo
[base-local]
name=Centos
baseurl=file:///mnt/yum
enable=1
gpgckeck=0
tar -xvf httpd-2.4.25 -C /usr/src
yum -y install gcc make openssl-devel pcre-devel apr-devel apr-util-devel
cd httpd-2.4.25/
./configure --prefix=/usr/local/httpd
make && make install
/usr/local/httpd/bin/httpd
sed -nr ‘s/(^#|^#[[:space:]]+)//p‘ /etc/fstab
原文:https://blog.51cto.com/13798083/2668493