교환망
- 설치 tengine 호환의 nginx 구성 및 모듈 ngx_http_concat_module을 활성화
- ngx_http_concat_module이 모듈은 문자 메시지에 응답하여 복수의 파일들을 결합 아파치 mod_concat 모듈과 유사하다.
- --with-http_concat_module 수 ngx_http_concat_module 静态 模块
- --with-http_concat_module = ngx_http_concat_module 있도록 공유 (공동) 动态 模块
2. 설치
냠 -y 정력 lrzsz 트리 설치 화면이 가운데서도 lsof를 tcpdump에 wget과 ntpdate를 GCC GCC-C ++의 glibc의 glibc-(STABLE) PCRE PCRE-(STABLE)하려면 openssl하려면 openssl-(STABLE) systemd-(STABLE) 순-도구 iotop BC 지퍼 압축 해제 ZLIB-(STABLE) bash는 완성 NFS-utils를 automake를 libxml2를 libxml2를-(STABLE)의 libxslt를의 libxslt를-(STABLE) 펄 펄-위한 ExtUtils - 삽입 된
CD / usr / 지방 / src에
wget과 http://tengine.taobao.org/download/tengine-2.1.2.tar.gz
CD를 tengine - 2.1.2
쿼리의 nginx 구성 및 모듈을 삭제하는 것은 지원하지 않습니다
/apps/nginx/sbin/nginx -V
tengine-2.1.2 컴파일러 설치 디렉토리에서
./configure --prefix=/apps/tengine --user=nginx --group=nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --add-module=/usr/local/src/echo-nginx-module
make && make install
수입의 nginx 프로필 tengine 프로필
vim /apps/tengine/conf/nginx.conf
include /apps/nginx/conf/server/*.conf;
}
3. 정적 tengine에 직접 컴파일 ngx_http_concat_module
./configure --prefix=/apps/tengine --user=nginx --group=nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --add-module=/usr/local/src/echo-nginx-module --with-http_concat_module
make && make install
구성 파일 위치에서 열기 CONCAT 모듈
concat on;
/apps/tengine/sbin/nginx -t
/apps/tengine/sbin/nginx -s start
4. tengine를 다시 설치 tengine 제거, 동적 tengine에 직접 컴파일 ngx_http_concat_module
tengine-2.1.2 컴파일러 설치 디렉토리에서
./configure --prefix=/apps/tengine --user=nginx --group=nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --add-module=/usr/local/src/echo-nginx-module
make && make install
수입의 nginx 프로필 tengine 프로필
vim /apps/tengine/conf/nginx.conf
include /apps/nginx/conf/server/*.conf;
}
설치 디렉토리에 동적 모듈 ngx_http_concat_module 컴파일
- 구성 파일 모듈에서 직접 호출 tengine (의 nginx를) 중지 할 수 없습니다 동적 모듈은 tengine의 완료에 대한 구성 파일 확장자를 다시로드
./configure --prefix=/apps/tengine --user=nginx --group=nginx --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --add-module=/usr/local/src/echo-nginx-module --with-http_concat_module=shared
make dso_install
ll /apps/tengine/modules/
rwxr-xr-x 1 root root 93264 Jun 1 10:42 ngx_http_concat_module.so
vim /apps/tengine/conf/nginx.conf
dso {
load ngx_http_concat_module.so;
}
/apps/tengine/sbin/nginx -t
/apps/tengine/sbin/nginx -s start