软件:' u* w5 I& h1 u; \* x
wget http://nginx.org/download/nginx-1.9.0.tar.gz
, \! E: C1 ?: utar xzvf nginx-1.9.0.tar.gz, ^; N" f9 ?0 G( L1 _: E/ k" ?7 i
wget https://github.com/nbs-system/naxsi/archive/master.zip& j6 h" M9 a7 e, D3 q% _; U
mv master.zip naxsi-master.zip8 j# ?+ g4 M# ?! D, ~
unzip naxsi-master.zip; a3 @: p* A% z5 M& i+ Y0 L
9 i+ z6 ?+ K0 L% r8 p
https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip: i- B6 y4 X$ D0 P7 k9 g
mv master.zip ngx-master.zip( {2 L {+ |* d" p( Q
unzip ngx-master.zip r* ~$ p n" g* A; s) G& ~7 z
) R. ^% T+ R* d; C8 j Scd nginx-1.9.0
% g+ w# r# @7 L8 h0 ^( ^+ Y: U t3 C1 Y% r' Q) ?0 j9 y0 L
[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
{+ u% r9 W/ u' d" J) ?
, Y7 a" x3 Y- E- R5 o3 h2 Z
|