商务合作加Q:411239339

nginx simple loadbalance configure

浏览:321次阅读
没有评论

共计 258 个字符,预计需要花费 1 分钟才能阅读完成。

http {
  upstream myproject {
    server 127.0.0.1:8000 weight=3;
    server 127.0.0.1:8001;
    server 127.0.0.1:8002;
    server 127.0.0.1:8003;
  }

  server {
    listen 80;
    server_name www.domain.com;
    location / {proxy_pass http://myproject;}
  }}
正文完
扫码赞助
post-qrcode
 0
果子
版权声明:本站原创文章,由 果子 于2018-03-31发表,共计258字。
转载说明:除特殊说明外本站文章皆由果较瘦原创发布,转载请注明出处。
评论(没有评论)