你好,我在底257行插入了几行打补丁,然后在/.configure 那里添加了--add-module=${Setup_Path}/src/ngx_req_status ,但好像不行。
- bash /www/server/panel/install/nginx.sh install openresty
复制代码
安装的openresty版本,但完成后没有安装上,nginx.sh也被重置了。
- #ngx_req_status
- git clone https://github.com/zls0424/ngx_req_status ngx_req_status
- cd ${Setup_Path}/src/bundle/nginx-${nginxVersion}
- patch -p1 < ${Setup_Path}/src/ngx_req_status/write_filter-1.7.11.patch
-
- cd ${Setup_Path}/src
- # if [ "${GMSSL}" ];then
- # sed -i "s/$OPENSSL\/.openssl\//$OPENSSL\//g" auto/lib/openssl/conf
- # fi
- export LUAJIT_LIB=/usr/local/lib
- export LUAJIT_INC=/usr/local/include/${LUAJIT_INC_PATH}/
- export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
- ./configure --user=www --group=www --prefix=${Setup_Path} ${ENABLE_LUA} --add-module=${Setup_Path}/src/ngx_cache_purge --add-module=${Setup_Path}/src/nginx-sticky-module --add-module=${Setup_Path}/src/ngx_req_status --with-openssl=${Setup_Path}/src/openssl --with-pcre=pcre-${pcre_version} ${ENABLE_HTTP2} --with-http_stub_status_module --with-http_ssl_module --with-http_image_filter_module --with-http_gzip_static_module --with-http_gunzip_module --with-ipv6 --with-http_sub_module --with-http_flv_module --with-http_addition_module --with-http_realip_module --with-http_mp4_module --with-ld-opt="-Wl,-E" --with-cc-opt="-Wno-error" ${jemallocLD} ${ENABLE_WEBDAV} ${ENABLE_NGX_PAGESPEED} ${ADD_EXTENSION} ${i_make_args}
- make -j${cpuCore}
复制代码 |