1.要求搭建web服务器,能够访问到网页内容为“小胖,你咋这么胖呢!”
#mount /dev/sr0 /mnt
#vim /etc/yum.repos.d/base.repo
[BaseOS]
name=BaseOS
baseurl=file:///mnt/BaseOS
gpgcheck=0
[AppStream]
name=AppStream
baseurl=file:///mnt/AppStream
gpgcheck=0
#yum install httpd -y
#systemctl stop firewalld
#setenforce 0
#systemctl start httpd
#ll /var/www/html
#echo “小胖,你咋这么胖呢!” > /var/www/html/index.html
#systemctl restart httpd
2.要求搭建web服务器,创建基于域名的虚拟机,能使用www.xiaopang.com和www.dapang.com访问各自的网站存放路径分别为/xiaopang和/dapang,内容自定。
在host文件夹内修改:
显示xiaopang的内容