1.配置本地host
2.修改nginx.conf配置文件如下
[root@localhost /]# cd etc/nginx/
[root@localhost nginx]# vim nginx.conf
3.启动nginx 两台tomcat
[root@localhost sbin]# ./nginx
[root@localhost bin]# ./startup.sh
4.浏览器访问 www.sougou.com
访问3次 两次qunar-tomcat 一次为sougou
weight 默认为1.weight越大,负载的权重就越大