1.创建4个Liberty Server
2.访问端口分别为9080、9081、9082、9083
访问server1https://www.cndba.cn/hbhe0316/article/4843
访问server2https://www.cndba.cn/hbhe0316/article/4843
访问server3https://www.cndba.cn/hbhe0316/article/4843
访问server4
3.安装配置nginx服务器.https://www.cndba.cn/hbhe0316/article/4843
https://www.cndba.cn/hbhe0316/article/4843
https://www.cndba.cn/hbhe0316/article/4843
4.修改nginx.conf文件https://www.cndba.cn/hbhe0316/article/4843
执行命令重启加载配置文件:
[root@was01 conf]# nginx -s reloadhttps://www.cndba.cn/hbhe0316/article/4843
5.访问nginx,刷新浏览器,可以看到4个版本依次出现在浏览器,这样就实现了负载均衡的功能。https://www.cndba.cn/hbhe0316/article/4843
https://www.cndba.cn/hbhe0316/article/4843
版权声明:本文为博主原创文章,未经博主允许不得转载。
nginx