话不多说,我的系统的centos6,参考帖子http://bbs.swdyz.com/forum.php?mod=viewthread&tid=418
' m) R! y9 q: Z* W# i, k& b下载需要组件
9 ]* c& u* `1 b T" s" Kwget http://nginx.org/download/nginx-1.15.9.tar.gz) G" ?- ? u* [' b
tar xvzf nginx-1.15.9.tar.gz
& `; C2 J" ~! w8 J1 n; j- Z, H* q$ J' u8 ~% c$ o) R
wget https://www.openssl.org/source/openssl-1.1.1b.tar.gz+ \ a: W5 e9 H* B3 G
tar xvzf openssl-1.1.1b.tar.gz- H v9 c3 G5 q! K
. S8 X* G* K8 d; X; W- ]. [9 M$ Rwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.43.tar.gz
7 A3 I8 A. h7 \tar xvzf pcre-8.43.tar.gz) E7 a, C: X4 C& Y. z i1 S* l6 t5 [, D- H
! |$ e+ v' \, vwget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/master.zip -O ngx_http_substitutions_filter.zip
( Y+ \' S0 P% ^* I- H5 Z3 n5 x& i1 Lunzip ngx_http_substitutions_filter.zip/ v; W8 r6 k `& C7 c1 ~" K5 D
- v3 w3 c6 m1 V3 \" i6 dcd nginx-1.15.97 `; r9 @' l6 u8 ]# _
3 b' X5 Z. n7 j- @% @1 u L, U& t0 J配置文件6 w) G! w! a" E8 d5 e2 L2 S* A5 Q
5 Z ?4 i7 `+ C4 K3 h" n0 q
( c! w3 y4 B0 k( {* }
[Shell] 纯文本查看 复制代码 ./configure \
--user=www \
--group=www \
--prefix=/www/webserver/nginx-1.15.9 \
--sbin-path=/www/webserver/nginx-1.15.9/sbin/nginx \
--pid-path=/www/webserver/nginx-1.15.9/logs/nginx.pid \
--conf-path=/www/webserver/nginx-1.15.9/conf/nginx.conf \
--error-log-path=/www/webserver/nginx-1.15.9/logs/error.log \
--http-log-path=/www/webserver/nginx-1.15.9/logs/access.log \
--http-client-body-temp-path=/www/webserver/nginx-1.15.9/temp/client \
--http-proxy-temp-path=/www/webserver/nginx-1.15.9/temp/proxy \
--http-fastcgi-temp-path=/www/webserver/nginx-1.15.9/temp/fcgi \
--http-scgi-temp-path=/www/webserver/nginx-1.15.9/temp/scgi \
--http-uwsgi-temp-path=/www/webserver/nginx-1.15.9/temp/uwsgi \
--with-http_flv_module \
--with-http_stub_status_module \
--with-http_realip_module \
--with-http_ssl_module \
--with-http_v2_module \
--with-http_gzip_static_module \
--with-pcre=/root/pcre-8.43 \
--with-http_sub_module \
--add-module=/root/ngx_http_substitutions_filter_module-master \
--with-openssl=/root/openssl-1.1.1b
6 ?: e5 W* b5 W编译 make( U5 G) x' i% `
安装 make install
Q3 Q$ _' U* x% O- G
U6 d/ T1 b, i, r. m0 T, ^. ?: F/ }3 u其它的启动配置文件找度娘。" Q5 B, u9 p5 |
|