- 다운로드 경로 : http://nginx.org/en/download.html
( window, linux 전부 무설치 )
- 설정파일 : ./conf/nginx.conf
- 초기설정 : /localhost:8080/ -> ./html 폴더
- 시작 : nginx
- 종료 : nginx -s stop
서버설정 분리
-p 로 서버설정을 분리할 수 있음. 해당폴더 하위에 있는 설정정보로 서버시작
ex> nginx -p server1 ( server1 하위폴더의 설정내용 /server1/conf/nginx.conf 으로 서버 시작 )
ex> nginx -p server1 -s stop ( 종료시 )
파라미터 Options:
-?,-h : this help
-v : show version and exit
-V : show version and configure options then exit
-t : test configuration and exit
-T : test configuration, dump it and exit
-q : suppress non-error messages during configuration testing
-s signal : send signal to a master process: stop, quit, reopen, reload
-p prefix : set prefix path (default: NONE)
-c filename : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file
'잡다' 카테고리의 다른 글
sample (0) | 2021.08.24 |
---|---|
[GIT] bash 명령어 - 연결해제, 최초등록, 비밀번호 변경 후 (0) | 2020.04.21 |