安装编译脚本:
依赖:apt-get install libpcre3 libpcre3-dev
wget https://nginx.org/download/nginx-1.27.1.tar.gz //获取nginx
tar -zxvf nginx-1.27.1.tar.gz
cd nginx-1.27.1
git clone https://github.com/chobits/ngx_http_proxy_connect_module.git //获取补丁
patch -p1 < /root/ssr/nginx-1.27.1/ngx_http_proxy_connect_module/patch/proxy_connect_rewrite_102101.patch // 使用配对 nginx 版本的补丁
./configure --prefix=/usr/local/nginx --with-http_ssl_module --add-module=/root/ssr/nginx-1.27.1/ngx_http_proxy_connect_module
make && make install
其他
ps -ef|grep nginx
systemctl stop nginx
scp objs/nginx /usr/sbin/nginx //拷贝生成的nginx替换已安装的
nginx -c /usr/local/nginx/conf/nginx.conf