nginx 첨가 nginxupstream_check_module 모듈 건강 상태 검사 실현

872 단어 linuxnginx
#      /opt/nginx
cd /opt/nginx

#   git
yum install -y git

#     
git clone https://github.com/yaoweibin/nginx_upstream_check_module.git

#        
yum -y install patch
# nginx     /opt/nginx/nginx-1.18.0
cd /opt/nginx/nginx-1.18.0

#  nginx   (  nginx        ),          ,     "[error] 29841#0: *23 http upstream check module can not find any check server, make sure you've added the check servers,"   
patch -p1 < /opt/nginx/nginx_upstream_check_module/check_1.16.1+.patch

./configure --user=nginx --group=nginx --prefix=/usr/local/nginx --with-stream --add-module=/opt/nginx/nginx_upstream_check_module

#   
make

#   objs,    nginx      
cd /opt/nginx/nginx-1.18.0/objs

#     nginx
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak

#   nginx
cp nginx /usr/local/nginx/sbin/nginx

systemctl restart nginx

좋은 웹페이지 즐겨찾기