nginx-clojure debug构建简单说明

实际上参考了官方的构建参数,提供一个debug 模式的文件

原始配置

configure arguments: --prefix= --sbin-path=nginx --conf-path=conf/nginx.conf --error-log-path=logs/error.log --http-log-path=logs/access.log --pid-path=logs/nginx.pid --lock-path=logs/nginx.lock --http-client-body-temp-path=temp/client_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --http-uwsgi-temp-path=temp/uwsgi_temp --http-scgi-temp-path=temp/scgi_temp --with-http_ssl_module --with-http_v2_module --with-pcre-jit --with-debug --with-http_image_filter_module=dynamic --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-pcre=../pcre-8.40 --with-zlib=../zlib-1.2.11 --with-openssl=../openssl-3.1.0 --with-cc-opt='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --add-module=../nginx-clojure/src/c

debug 构建参数

nginx-1.25.0 版本,对于pcre,zlib 以及openssl 都使用自己下载的,注意openssl 构建需要安装perl-IPC-Cmd

./configure --prefix= --sbin-path=nginx --conf-path=conf/nginx.conf --error-log-path=logs/error.log --http-log-path=logs/access.log --pid-path=logs/nginx.pid --lock-path=logs/nginx.lock --http-client-body-temp-path=temp/client_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --http-uwsgi-temp-path=temp/uwsgi_temp --http-scgi-temp-path=temp/scgi_temp --with-http_ssl_module --with-http_v2_module --with-pcre-jit --with-debug --with-http_image_filter_module=dynamic --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-zlib=../zlib-1.2.13 --with-pcre=../pcre-8.40 --with-openssl=../openssl-3.1.0 --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module   --with-ipv6 --with-debug --with-cc-opt='-O0 -g' --add-module=../nginx-clojure-0.6.0/src/c    

说明

docker 版本的debug 文件我已经push docker 仓库了dalongrong/nginx-clojure:0.6.0-debug 可以直接使用

参考资料

https://github.com/nginx-clojure/nginx-clojure
https://github.com/openssl/openssl/releases
https://github.com/madler/zlib/releases
https://sourceforge.net/projects/pcre/
https://stackoverflow.com/questions/70464585/error-when-installing-openssl-3-0-1-cant-locate-ipc-cmd-pm-in-inc

posted on 2023-06-12 11:31  荣锋亮  阅读(112)  评论(2编辑  收藏  举报

导航