其他

nginx命令行参数

2018-05-09
  1. 启动nginx
  start nginx 或 nginx.exe
  2. 重启nginx
  nginx -s reload
  3. 停止nginx
  nginx -s stop 或 nginx -s quit
  stop是快速停止nginx,可能并不保存相关信息;quit是完整有序的停止nginx,并保存相关信息。
  4.nginx命令行参数说明NginxCommandLine
  Usage: nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]

zvt七七世界-网站建设|UI设计|人资系统|二次开发

Options 说明
-?,-h Print help.
-v Print version.
-V Print nginx version, compiler version and configure parameters.
-t Don’t run, just test the configuration file.
-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: /usr/local/nginx/)
-c configPath Specify which configuration file Nginx should use instead of the default.
-g directives Set global directives.

© 2012-2024七七世界网站建设     20707.net 1125w.com 版权所有     豫ICP备14018694号-1