首页 > 系统相关 >nacos 使用nginx做负载均衡

nacos 使用nginx做负载均衡

时间:2023-05-15 12:14:39浏览次数:33  
标签:负载 http stream 编译 nacos nginx

nacos要使用nginx做负载均衡需要使用到stream模块,如果编译nginx的时候没有添加stream模块的,建议重新编译(否则改一个出现N个错误)

编译命令:./configure --prefix=/usr/local/nginx --with-stream

nginx.conf配置:

stream与http同级

 

 upstream与http下的server同级

 

标签:负载,http,stream,编译,nacos,nginx
From: https://www.cnblogs.com/leihongnu/p/17401419.html

相关文章