安装编译脚本:
依赖: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

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐