컴 파일 된 nginx 동적 추가 모듈

1826 단어 nginx
nginx 동적 추가 모듈 이 설 치 된 nginx 입 니 다. 컴 파일 되 지 않 은 모듈 을 추가 해 야 합 니 다. 어떻게 해 야 합 니까?여 기 는 제3자 ngx 를 설치 합 니 다.http_google_filter_module 모듈 의 경우 nginx 모듈 은 apache 처럼 파일 인용 을 설정 하 는 것 이 아니 라 nginx 를 다시 컴 파일 해 야 합 니 다. so
1. 제3자 확장 모듈 ngx 다운로드http_google_filter_module
#cd /data/software/
#git clone https://github.com/cuber/ngx_http_google_filter_module

2. nginx 컴 파일 설치 시 어떤 모듈 이 설치 되 어 있 는 지 확인 합 니 다.
#nginx -V
nginx version: nginx/1.8.0
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) 
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module --add-module=/data/software/ngx_http_substitutions_filter_module

컴 파일 설치 에 사용 되 었 음 을 알 수 있 습 니 다 – prefix = / usr / local / nginx -- with - httpssl_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module --add-module=/data/software/ngx_http_substitutions_filter_module 이 매개 변수 들.add-module=/data/software/ngx_http_substitutions_filter_module 은 이전 컴 파일 에 ngx 를 추가 합 니 다.http_substitutions_filter_module 모듈 시 추가
3. 설치 할 모듈 을 추가 하고 여기에 * * – add - module = / data / software / ngx 를 추가 합 니 다.http_google_filter_module**
#./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module --add-module=/data/software/ngx_http_substitutions_filter_module --add-module=/data/software/ngx_http_google_filter_module
 make    //    make install,        

4. nginx 바 이 너 리 파일 바 꾸 기:
#cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
#cp ./objs/nginx /usr/local/nginx/sbin/

좋은 웹페이지 즐겨찾기