0.nginx帮助
D:\Program Files\nginx-1.11.10>nginx.exe -h
nginx version: nginx/1.11.10
Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives]
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
1.启动nginx
- 双击nginx.exe启动
- 使用命令
start nginx.exe
或 nginx.exe
启动
2.停止nginx
- 使用命令
nginx.exe -s stop
或 nginx.exe -s quit
停止
<u>stop是快速停止nginx,可能并不保存相关信息;quit是完整有序的停止nginx,并保存相关信息</u>
3.重新载入
- 修改完配置后使用命令
nginx.exe -s reload
重新载入nginx
网友评论