综合练习:请给openlab搭建web网站
网站需求:
1.基于域名www.openlab.com可以访问网站内容为 welcome to openlab!!!
关闭防火墙
systemctl stop firewalled.service
setenforce 0
安装安装包并启动
mount /dev//sr0 mnt
vim /etc/yum.repos.d/base.repo
dnf install httpd -y
systemctl start httpd
在子配置文件中编写文件
vim /etc/httpd/conf.d/vhosts.conf
创建目录,重启httpd。