nginx负载均衡

Nginx能够配置代理多台服务器,当一台服务器宕机以后,仍能保持系统可用。具体配置过程以下:html 1. 在http节点下,添加upstream节点。linux upstream 项目名 {        server ip:端口;        server ip:端口;  }算法   2.  将server节点下的location节点中的proxy_pass配置为:http:// + 项目名
相关文章
相关标签/搜索