学习笔记(44):高并发下的Nginx性能优化实战-Nginx配置web应用集群搭建

立即学习:https://edu.csdn.net/course/play/27216/358405?utm_source=blogtoedu

1.配置文件的http模块中增加

upstream localhost{

server 192.168.1.2:8081;

server 192.168.1.3:8081;

server 192.168.1.4:8081;

}

 2.在server子模块的localtion /{}中改为:

proxy_pass http://localhost;

前提是server_name是localhost

发布了75 篇原创文章 · 获赞 34 · 访问量 27万+

猜你喜欢

转载自blog.csdn.net/huanggang982/article/details/105348129