Nginx实现负载均衡,以轮询为例

轮询策略 一、单服务器实现nginx负载均衡 1.首先准备一台服务器 nginx:localhost:10000 server1:localhost:10001 server2:localhost:10002 2.配置nginx.conf 1)设置轮询策略 2)配置server1和server2 3.重启nginx服务:systemctl restart nginx    访问localhost:
相关文章
相关标签/搜索