NGINX 노트: Tengine 컴 파일 설치 Tengine / 2.3.1 컴 파일 설치 구덩이 밟 기 노트

2005 단어 NGINX
Tengine / 2.3.1 컴 파일 설치
많은 시간 이 걸 려 서 야 해결 한 문제
문제 배경, 이전에 tengine 을 사용 하여 이 건강 검진 이 매우 좋다 는 것 을 발 견 했 습 니 다. 화면 을 설정 하여 백 엔 드 응용 상 태 를 볼 수 있 고 이 출력 데 이 터 를 통 해 응용 상태 검 사 를 할 수 있 습 니 다.최근 에 일부 기 계 를 배치 해 야 합 니 다. NG 만 10 여 개의 노드 가 있 습 니 다. 새 기 계 는 당연히 새로운 버 전의 NG 를 사용 해 야 합 니 다. 그 결과 낡은 배치 가 사용 할 수 없 는 것 을 발 견 했 습 니 다. 아버 지 를 속 였 는데 생사 건강 검 사 를 사용 할 수 없다 는 것 을 발 견 했 습 니 다. 그 후에 알 고 보 니 ngxhttp_upstream_check_module 이 건강 검진 모듈 이 없어 졌 습 니 다. NND 공식 문서 에 도 설명 이 없습니다. github 에서 답 을 찾 았 습 니 다. 컴 파일 할 때 인 자 를 추가 합 니 다. – add - module =. / modules / ngxhttp_upstream_check_module 。 참고 로 nginx 의 컴 파일 은 정말 느 립 니 다. 이 문 제 를 검증 하기 위해 여러 번 컴 파일 했 습 니 다. 도둑 이 피 를 토 하 는 문제 입 니 다!
내 컴 파일 인자:
./configure   --prefix=/opt/nginx --user=apps --group=apps --with-threads --with-http_ssl_module --with-http_sub_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-http_addition_module --with-http_v2_module --with-openssl=/opt/tools/openssl-1.1.1c --with-pcre=/opt/tools/pcre-8.43 --with-zlib=/opt/tools/zlib-1.2.11 --with-jemalloc=/opt/tools/jemalloc-5.1.0 --add-module=/opt/tools/ngx_http_substitutions_filter_module-master --add-module=/opt/tools/ngx_devel_kit-master --add-module=/opt/tools/ngx_cache_purge-2.3 --add-module=./modules/ngx_http_upstream_check_module --add-module=./modules/ngx_http_upstream_session_sticky_module --add-module=./modules/ngx_http_upstream_dynamic_module 

make && make install

설치 모듈 상태 확인:
/opt/nginx/sbin/nginx -m

건강 검진 모듈 오류 신고 없 음
/opt/nginx/sbin/nginx -t nginx: [emerg] unknown directive “check” in /opt/nginx/conf/upstream.conf:8 nginx: configuration file /opt/nginx/conf/nginx.conf test failed
upstream 에 가 입 했 기 때 문 입 니 다:
  check interval=3000 rise=2 fall=5 timeout=1000 type=http;

주:
타 오 바 오의 Tengine 은 2.3.0 또는 2.3.1 로 업그레이드 되 었 으 나 건강 검진 모듈 을 기본 으로 설치 하지 않 고 기본적으로 ipv 6 를 지원 하여 위의 구 덩이 를 만 들 었 습 니 다.

좋은 웹페이지 즐겨찾기