upstream cssbase { //连接池名称
server localhost:10001;
server localhost:10002;
}
server {
listen 10000;
server_name localhost;
location / {
proxy_pass http://cssbase;
proxy_redirect default;
}
}
nginx模拟负载均衡
最新推荐文章于 2024-07-21 18:48:59 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)