nginx主动健康检查负载均衡模块
下载模块,放到源代码根目录: nginx_upstream_check_module 重新安装: ./configure --add-module=./nginx_upstream_check_module --with-http_ssl_module --with-http_v2_module --with-stream --with-http_gzip_static_module #默认安装到/usr/local/nginx下面 make sudo make install #查看版本(可看到所有编译进去的模块) /usr/local/bin/nginx -V #安装到全局(看自己的目录) cp /usr/sbin/nginx /usr/local/bin/nginx.bak cp ./objs/nginx /usr/local/bin/nginx 使用方法: ...
nginx添加nginx_upstream_check_module
#cd nginx source folder cd /usr/local/nginx/nginx-1.18.0 wget https://github.com/yaoweibin/nginx_upstream_check_module/archive/refs/heads/master.zip unzip master.zip mkdir nginx_upstream_check_module mv nginx_upstream_check_module/* ./nginx_upstream_check_module/ ./configure --add-module=./nginx_upstream_check_module #if need ssl #./configure --add-module=./nginx_upstream_check_module --with-http_ssl_module #backup old nginx file mv /usr/local/n...