软件:) a4 k, P, ^* y9 W' H. d
wget http://nginx.org/download/nginx-1.9.0.tar.gz
- f m6 i3 U, l- }; I. X$ itar xzvf nginx-1.9.0.tar.gz
: s$ a* ~2 W7 R( Swget https://github.com/nbs-system/naxsi/archive/master.zip
6 z7 T% B9 @ t1 Qmv master.zip naxsi-master.zip8 G& g" e) x6 i( `( R f) A
unzip naxsi-master.zip
5 s$ [% Q6 C+ _1 @! |8 e/ l
& \; J6 h- l; s; b8 [' C( ?! z2 E. Q" Ahttps://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip( h/ b" o1 w& b6 X9 m* I( m
mv master.zip ngx-master.zip
9 A+ f5 k# M' E, [! yunzip ngx-master.zip F/ X9 Y) G$ }0 j+ `! n: u1 v8 S
t& H E7 E) u( X% |+ t6 ^cd nginx-1.9.0
7 K0 e6 J0 ^' u- A
6 S- R. V6 ~1 m' T1 \6 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
2 T w$ i7 p y& c" U1 G3 d+ P
* \* c* l: o, e% |8 T' e
|