1、搭建yum安装环境:
vi /etc/yum.repos.d/base.repo
2.镜像文件挂载到指定挂载点目录/mnt使用命令: mount /dev/sr0 /mnt/
3.yum repolist 查看一下yum的安装是否正确
4.yum install httpd -y 安装httpd
5.systemctl restart httpd 重启httpd
6.systemctl status firewalld 查看防火墙状态
7.systemctl stop firewalld.service 关闭防火墙