第一步:先配置项目所需要的实验网络环境
haproxy主机的网络环境配置
webserver1的网络环境配置
webserver2的网络环境配置

然后在webserver1和webserver2上安装nginx
将nginx的默认发布文件导入 /usr/share/nginx/html/index.html 并且开启nginx服务


实验haproxy主机进行访问

进入haproxy配置文件进行配置,设置完成后wq保存退出并开启服务


最后进行测试

第一步:先配置项目所需要的实验网络环境
haproxy主机的网络环境配置
webserver1的网络环境配置
webserver2的网络环境配置
然后在webserver1和webserver2上安装nginx
将nginx的默认发布文件导入 /usr/share/nginx/html/index.html 并且开启nginx服务
实验haproxy主机进行访问
进入haproxy配置文件进行配置,设置完成后wq保存退出并开启服务
最后进行测试