(1)通过yum/dnf安装软件httpd程序;
在/var/www/html创建一个文件为index.html,内容为helloworld;
执行systemctl start httpd命令后通过linux浏览器访问该文件内容http://localhost
[root@localhost ~]# mount /dev/sr0 /mnt
[root@localhost ~]# vim /etc/yum.repos.d/base.repo
[root@localhost ~]# dnf install httpd
[root@localhost ~]# echo helloworld > /var/www/html/index.html
[root@localhost ~]# systemctl start httpd
2)卸载httpd软件包;
# vim /etc/yum.repos.d/base.repo
[baseOS]
name=baseOs
baseurl=file:///mnt/BaseOS/ -----BaseOS
gpgcheck=0
[AppStream]
name=AppStream
baseurl=file:///mnt/AppStream/
gpgcheck=0