安装pcre library
cd // 安装pcre库
wget https://nchc.dl.sourceforge.net/project/pcre/pcre/8.42/pcre-8.42.tar.gz
tar -zxf pcre-8.42.tar.gz
cd pcre-8.42/
./configure
make
sudo make install
ldconfig
克隆补丁
git clone https://github.com/yaoweibin/nginx_upstream_check_module.git
安装nginx
wget https://nginx.org/download/nginx-1.14.0.tar.gz
tar -zxf nginx-1.14.0.tar.gz
cd nginx-1.14.0
patch -p1 < /home/shuai.qi/nginx_upstream_check_module/check_1.14.0+.patch
./configure --add-module=/home/shuai.qi/nginx_upstream_check_module --with-http_ssl_module --sbin-path=/usr/sbin --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log
make
sudo make install
启动nginx
sudo nginx
网友评论