立即学习:https://edu.csdn.net/course/play/27216/358410?utm_source=blogtoedu
Fair插件安装
下载地址https://github.com/gnosek/nginx-upstream-fair/tree/master
解压zip:unzip nginx-upstream-fair-master.zip
增加模块 ./configure --prefix=/opt/nginx --add-module=/opt/nginx-upstream-fair-master
default_port问题修改:cd nginx-upstream-fair-master
sed -i 's/default_port/g'ngx_http_upstream_fair_module.c
make
make install
hash插件安装
下载地址:https://github.com/evanmiller/nginx_upstream_hash
解压zip:unzip nginx_upstream_hash-master.zip
增加模块:./configure --prefix=/opt/nginx --add-module=/opt/nginx-upstream-hash-master
make
make install