Update 'nginx/build.sh'
parent
3a4ee7f8f7
commit
a2d45112cb
|
@ -15,6 +15,7 @@ git clone https://github.com/openresty/srcache-nginx-module.git
|
|||
git clone https://github.com/openresty/set-misc-nginx-module.git
|
||||
git clone https://github.com/FRiCKLE/ngx_coolkit.git
|
||||
git clone https://github.com/FRiCKLE/ngx_slowfs_cache.git
|
||||
git clone https://github.com/sto/ngx_http_auth_pam_module.git
|
||||
|
||||
wget https://people.freebsd.org/~osa/ngx_http_redis-0.3.8.tar.gz
|
||||
tar -zxf ngx_http_redis-0.3.8.tar.gz
|
||||
|
@ -133,4 +134,63 @@ cd /root/addons/nginx/nginx-1.13.2
|
|||
|
||||
make
|
||||
|
||||
make install
|
||||
make install
|
||||
|
||||
|
||||
|
||||
./configure \
|
||||
--with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' \
|
||||
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' \
|
||||
--prefix=/usr/share/nginx \
|
||||
--conf-path=/etc/nginx/nginx.conf \
|
||||
--http-log-path=/var/log/nginx/access.log \
|
||||
--error-log-path=/var/log/nginx/error.log \
|
||||
--lock-path=/var/lock/nginx.lock \
|
||||
--pid-path=/run/nginx.pid \
|
||||
--http-client-body-temp-path=/var/lib/nginx/body \
|
||||
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
|
||||
--http-proxy-temp-path=/var/lib/nginx/proxy \
|
||||
--http-scgi-temp-path=/var/lib/nginx/scgi \
|
||||
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
|
||||
--with-debug \
|
||||
--with-pcre-jit \
|
||||
--with-http_ssl_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_auth_request_module \
|
||||
--with-http_addition_module \
|
||||
--with-http_geoip_module \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_image_filter_module \
|
||||
--with-http_v2_module \
|
||||
--with-http_sub_module \
|
||||
--with-http_xslt_module \
|
||||
--with-threads \
|
||||
--add-module=/usr/local/src/ngx_cache_purge \
|
||||
--add-module=/usr/local/src/memc-nginx-module \
|
||||
--add-module=/usr/local/src/ngx_devel_kit \
|
||||
--add-module=/usr/local/src/headers-more-nginx-module \
|
||||
--add-module=/usr/local/src/echo-nginx-module \
|
||||
--add-module=/usr/local/src/ngx_http_substitutions_filter_module \
|
||||
--add-module=/usr/local/src/redis2-nginx-module \
|
||||
--add-module=/usr/local/src/srcache-nginx-module \
|
||||
--add-module=/usr/local/src/set-misc-nginx-module \
|
||||
--add-module=/usr/local/src/ngx_http_redis \
|
||||
--add-module=/usr/local/src/ngx_http_auth_pam_module \
|
||||
--add-module=/usr/local/src/ngx_brotli \
|
||||
--with-openssl=/usr/local/src/openssl \
|
||||
--with-openssl-opt=enable-tls1_3 \
|
||||
--sbin-path=/usr/sbin/nginx
|
||||
|
||||
|
||||
--with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' \
|
||||
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' \
|
||||
--prefix=/usr/share/nginx \
|
||||
--conf-path=/etc/nginx/nginx.conf \
|
||||
--http-log-path=/var/log/nginx/access.log \
|
||||
--error-log-path=/var/log/nginx/error.log \
|
||||
--lock-path=/var/lock/nginx.lock \
|
||||
--pid-path=/run/nginx.pid \
|
||||
--http-client-body-temp-path=/var/lib/nginx/body \
|
||||
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
|
||||
--http-proxy-temp-path=/var/lib/nginx/proxy \
|
Loading…
Reference in New Issue