挂载 配置源文件 下载httpd服务
systemctl stop firewalld
setenforce 0
mount /dev/sr0 /mnt
vim /etc/yum.repos.d/basee.repo
[BaseOS]
name=base
nameurl=file:///mnt/BaseOS
gpgcheck=0
enable=1
yum install httpd -y
查看服务状态
systemctl status httpd
进入主配置文件
vim /etc/httpd/conf/httpd.conf
找到ServerName 0.0.0.0 :80
默认配置自定义界面
[root@ZYBcomputer ~]# echo xiaopang,you are fat > /var/www/html/index.html
systemctl stop firedwalld
setenforce 0
systemctl restart httpd