软件:
8 b1 I+ @' i1 S# Ywget http://nginx.org/download/nginx-1.9.0.tar.gz
9 w" t" G8 `. q5 _! p. e* N ~' vtar xzvf nginx-1.9.0.tar.gz
) m9 ?0 U" Y% w% }wget https://github.com/nbs-system/naxsi/archive/master.zip
+ @6 f5 u& I. U1 ~mv master.zip naxsi-master.zip
; u1 c# N# V! W3 Munzip naxsi-master.zip! V+ z6 v) s" l" D" R2 A) F
% ?: d! f0 V* Z% g+ w' }8 H
https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip5 P4 h/ e0 v5 R$ L* M; R, ?
mv master.zip ngx-master.zip
; X9 g% Y. L3 g' F& Y0 {+ u' vunzip ngx-master.zip+ J8 Q9 h5 g# X' _2 |6 e3 b
; x" X9 j9 R) c- ?* X
cd nginx-1.9.0
* Q5 H5 M( u" M9 U/ q& C5 R3 A4 F4 G2 X* {+ m) W0 B5 v
[Bash shell] 纯文本查看 复制代码
./configure \
--user=www \
--group=www \
--prefix=/www/webserver/nginx-1.9.0 \
--sbin-path=/www/webserver/nginx-1.9.0/sbin/nginx \
--pid-path=/www/webserver/nginx-1.9.0/logs/nginx.pid \
--conf-path=/www/webserver/nginx-1.9.0/conf/nginx.conf \
--error-log-path=/www/webserver/nginx-1.9.0/logs/error.log \
--http-log-path=/www/webserver/nginx-1.9.0/logs/access.log \
--http-client-body-temp-path=/www/webserver/nginx-1.9.0/temp/client \
--http-proxy-temp-path=/www/webserver/nginx-1.9.0/temp/proxy \
--http-fastcgi-temp-path=/www/webserver/nginx-1.9.0/temp/fcgi \
--http-scgi-temp-path=/www/webserver/nginx-1.9.0/temp/scgi \
--http-uwsgi-temp-path=/www/webserver/nginx-1.9.0/temp/uwsgi \
--with-http_flv_module \
--with-http_stub_status_module \
--with-http_realip_module \
--with-http_ssl_module \
--with-http_spdy_module \
--with-http_gzip_static_module \
--with-ipv6 \
--with-pcre=/root/pcre-8.34 \
--with-http_sub_module \
--add-module=/root/ngx_http_substitutions_filter_module-master \
--add-module=/root/naxsi-master/naxsi_src
% r. t: B& z, N* @7 C4 F; }" U
- s t6 F& A/ S |