https://www.cnblogs.com/chenlifan/p/13591837.html

接上

ip_hash的配置方法

 

 

[root@lb01 ~]# vim /etc/nginx/conf.d/node_proxy.conf 
upstream web {
    server 172.16.1.7:80 ;
    server 172.16.1.8:80 ;
    ip_hash;
}

server {
    listen 80;
    server_name linux.node.com;

    location / {
        proxy_pass http://web;
        include proxy_params;
    }
}

ip_hash的配置方法

 

 

[root@lb01 ~]# systemctl restart nginx

ip_hash的配置方法

 

 ip_hash的配置方法

 

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2021-11-23
  • 2021-09-05
  • 2021-05-24
猜你喜欢
  • 2021-05-28
  • 2021-06-30
  • 2021-12-05
  • 2022-12-23
  • 2021-04-20
  • 2021-12-13
  • 2021-06-02
相关资源
相似解决方案