1.system1上面安装yum -y groupinstall web* 注意有星号 注意是groupinstall 不是install vim /etc/httpd/conf/http.conf 找到 Servername这一行,值修改为system1.rhce.cc:80 保存退出 wget -O /var/www/hrml/index.html 链接 意思是下载并另存为 firewall-cmd --add-rich-rule 'rule family=ipv4 source address=192.168.122.0/24 service name=http accept' firewall-cmd --add-rich-rule 'rule family=ipv4 source address=192.168.122.0/24 service name=http accept' --permanent systemctl start httpd systemctl enable httpd 在模拟物理机上访问试一下 在浏览器中输入system1.rhce.cc 正常会出现station就对了 记住了模拟物理机dns一定要改成192.168.122.10 改的话在这个文件中改vim /etc/resolv.conf