1.挂载 (采取本地安装,先挂载)
[root@kaikai ~]# mount /dev/sr0 /mnt
mount: /dev/sr0 is write-protected, mounting read-only
2.安装软件包
[root@kaikai ~]# vim /etc/yum.repos.d/base.repo
[base] ( yum源仓库的配置、检查)
name=base
baseurl=file:///mnt
gpgcheck=0
enable=1
[root@kaikai ~]# yum install httpd -y
3.启用服务
[root@kaikai ~]# systemctl start httpd
查看服务启停状况
[root@kaikai ~]# systemctl status httpd
4.关闭防火墙 关闭selinux
[root@kaikai ~]# systemctl stop firewalld
[root@kaikai ~]# setenforce 0
5.编辑子配置文件:vim /etc/httpd/conf.d/meimei.conf
6.创建/aaa 写入网页内容
7.重启服务并测试