1. Self-built yum warehouse, which are network source and local source respectively
Network source:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install epel-release-latest-7.noarch.rpm
yum repolist
Local source:
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
2. Compile and install http2.4 to realize normal access, and submit the compilation steps and results.
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
3. Use sed to get the IPv4 address of the machine in the ifconfig command
4. Delete all the # and blank characters at the beginning of the line starting with # and followed by at least one blank character in the /etc/fstab file
sed -nr 's/(^#|^#[[:space:]]+)//p' /etc/fstab