forked from linux985/linux985.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
nginx compiler parameters
linux211 edited this page Dec 11, 2017
·
4 revisions
[root@I-APIGW-LB03 conf]# /opt/onframework/nginx/sbin/nginx -v
nginx version: nginx/1.8.0
[root@I-APIGW-LB03 conf]# /opt/onframework/nginx/sbin/nginx -V
nginx version: nginx/1.8.0
built by gcc 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)
built with OpenSSL 1.0.2e 3 Dec 2015
TLS SNI support enabled
configure arguments: --prefix=/opt/onframework/nginx --with-ld-opt=-Wl,-rpath,/opt/onframework/nginx/luajit/lib --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --add-module=/opt/onframework/nginx-build/ngx_devel_kit-0.2.19/ --add-module=/opt/onframework/nginx-build/lua-nginx-module-0.9.16 --add-module=/opt/onframework/nginx-build/nginx_upstream_check_module-master/ --with-pcre=/opt/onframework/nginx-build/pcre-8.38 --with-zlib=/opt/onframework/nginx-build/zlib-1.2.7 --with-openssl=/opt/onframework/nginx-build/openssl-1.0.2e --add-module=/opt/onframework/nginx-build/modsecurity-2.9.0/nginx/modsecurity
[root@I-APIGW-LB02 sbin]# ./nginx -v
nginx version: nginx/1.9.0
[root@I-APIGW-LB02 sbin]# ./nginx -V
nginx version: nginx/1.9.0
built by gcc 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)
built with OpenSSL 1.0.2a 19 Mar 2015
TLS SNI support enabled
configure arguments: --prefix=/opt/onframework/nginx --with-ld-opt=-Wl,-rpath,/opt/onframework/nginx/luajit/lib --with-http_ssl_module --add-module=/tmp/tdp/ngx_devel_kit-0.2.19/ --add-module=/tmp/tdp/lua-nginx-module-0.9.16 --add-module=/tmp/tdp/nginx_upstream_check_module-master/ --with-pcre=/tmp/tdp/pcre-8.36 --with-zlib=/tmp/tdp/zlib-1.2.7 --with-openssl=/tmp/tdp/openssl-1.0.2a
--prefix=/opt/onframework/nginx
--with-cc-opt='-O2 -I/usr/local/include'
--add-module=../ngx_devel_kit-0.3.0
--add-module=../iconv-nginx-module-0.14
--add-module=../echo-nginx-module-0.60
--add-module=../xss-nginx-module-0.05
--add-module=../ngx_coolkit-0.2rc3
--add-module=../set-misc-nginx-module-0.31
--add-module=../form-input-nginx-module-0.12
--add-module=../encrypted-session-nginx-module-0.06
--add-module=../srcache-nginx-module-0.31
--add-module=../ngx_lua-0.10.8
--add-module=../ngx_lua_upstream-0.06
--add-module=../headers-more-nginx-module-0.32
--add-module=../array-var-nginx-module-0.05
--add-module=../memc-nginx-module-0.18
--add-module=../redis2-nginx-module-0.14
--add-module=../redis-nginx-module-0.3.7
--add-module=../rds-json-nginx-module-0.14
--add-module=../rds-csv-nginx-module-0.07
--with-ld-opt='-Wl,-rpath,/opt/onframework/luajit/lib -L/usr/local/lib64 -L/usr/local/lib -Wl,-rpath,/opt/onframework/nginx/luajit/lib -losscrypto -lstdc++'
--with-openssl=/home/apigateway/apig_openresty_package/openresty-1.11.2.3/../3rdparty/openssl-1.0.2k
--with-http_ssl_module --with-http_realip_module
--with-http_addition_module
--with-http_sub_module
--with-http_dav_module
--with-http_flv_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-cpp_test_module
--with-stream
--add-module=/home/apigateway/apig_openresty_package/openresty-1.11.2.3/../3rdparty/nginx_upstream_check_module-master
--add-module=/home/apigateway/apig_openresty_package/openresty-1.11.2.3/../3rdparty/nginx-goodies-nginx-sticky-module-ng-08a395c66e42
--with-pcre=/home/apigateway/apig_openresty_package/openresty-1.11.2.3/../3rdparty/pcre-8.39 --with-zlib=/home/apigateway/apig_openresty_package/openresty-1.11.2.3/../3rdparty/zlib-1.2.11
下载openresty-1.11.2.3.tar.gz
https://openresty.org/en/download.html
下载:nginx_upstream_check_module-master.tar.gz
https://github.com/yaoweibin/nginx_upstream_check_module
下载: nginx-goodies-nginx-sticky-module-ng-08a395c66e42.tar.gz
https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng
下载: zlib-1.2.11.tar.gz
http://www.zlib.net/
下载: openssl-1.0.2k.tar.gz
https://www.openssl.org/source/
下载: pcre-8.39.tar.gz
https://sourceforge.net/projects/pcre/files/pcre/8.41/
#!bin/bash
./configure \
--prefix=/opt/onframework/nginx \
--sbin-path=/opt/onframework/nginx/sbin \
-j2 \
--with-http_iconv_module \
--with-luajit \
--with-openssl=../3rdparty/openssl-1.0.2k \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_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-cpp_test_module \
--with-stream \
--with-cc-opt="-I/usr/local/include" \
--with-ld-opt="-L/usr/local/lib64 -L/usr/local/lib -Wl,-rpath,/opt/onframework/nginx/luajit/lib -losscrypto -lstdc++" \
--add-module="../3rdparty/nginx_upstream_check_module-master" \
--add-module="../3rdparty/nginx-goodies-nginx-sticky-module-ng-08a395c66e42" \
--with-pcre="../3rdparty/pcre-8.39" \
--with-zlib="../3rdparty/zlib-1.2.11"