一、实验环境
三台虚拟服务器: server2:172.25.7.3 ##调度器 server3:172.25.7.4 ##服务器vm3 server4:172.25.7.5 ##服务器vm4 做好地址解析 搭建好软件仓库 关闭火墙,修改selinux为disabled
二、服务器下载Apache
##server3下载Apache以及开启服务 [root@server3 ~]# dnf install httpd -y [root@server3 ~]# systemctl enable --now httpd ----------------------------------------------- ##server4下载Apache以及开启服务 [root@server4 ~]# dnf install httpd -y [root@server4 ~]# systemctl enable --now httpd ----------------------------------------------- ##server3和server4中的Apache默认发布目录下写index.html文件 [root@server3 ~]# echo this is vm3 > /var/www/html/index.html [root@server4 ~]# echo this is vm4 > /var/www/html/index.html