nginx 负载均衡

2021-11-02  本文已影响0人  yichen_china
worker_processes  1;

events {
    worker_connections  1024;
}


http {
#轮流触发
   upstream  dalaoyang-server {
       server    localhost:10001;
       server    localhost:10002;
   }

   server {
       listen       10000;
       server_name  localhost;

       location / {
        proxy_pass http://dalaoyang-server;
        proxy_redirect default;
      }

    }

}
上一篇下一篇

猜你喜欢

热点阅读