nginx 공식 문서 노트 1
4865 단어 nginx 문서 노트
configure
명령 을 통 해 파일 생 성 Makefile
, 일반적인 옵션--prefix=path
기본 디 렉 터 리 /usr/local/nginx
, configure 또는 nginx.conf
상대 디 렉 터 리 의 루트
--sbin-path prefix
/sbin/nginx 바 이 너 리 파일 --conf-path= prefix
/conf/nginx.conf 지정 가능 - c --pid-path= pid prefix
/logs/nginx.pid. --error-log-path=path nginx.conf
--http-log-path=path prefix
/logs/access.log --user
--group
--with-select_module selelct(), io
--without-http_gzip_module gzip , zlib
--without-http_rewrite_module url , PCRE
--without-http_proxy_module http
--with-http_ssl_module https , , Openssl
--with - pcr = path 는 PCRE 라 이브 러 리 에 설 치 된 위 치 를 가리 키 며, location 명령 의 정규 표현 식 과 http_proxy_module
모듈 에 의 해 사 용 됩 니 다.
--with - pcre - jit 즉시 컴 파일 pcre
--with - zlib = path 는 zlib 가 설치 한 위 치 를 가리 키 고 있 습 니 다.
--with-cc-opt=parameters ,설정 이 CFLAGS 변수 에 추 가 됩 니 다. 예 를 들 어 freeBSD 에 pcre 를 설정 하려 면 수 동 으로 설정 해 야 합 니 다 --with-cc-opt="-I /usr/local/include", select --with-cc-opt="-D FD_SETSIZE=2048"
--with-ld-opt=parameters , pcre freeBSD, --with-ld-opt="-L /usr/local/lib
./configure
--sbin-path=/usr/local/nginx/nginx
--conf-path=/usr/local/nginx/nginx.conf
--pid-path=/usr/local/nginx/nginx.pid
--with-http_ssl_module
--with-pcre=../pcre-8.41
--with-zlib=../zlib-1.2.11