001.nginx windows下命令

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.exenginx.exe启动

2.停止nginx

  • 使用命令nginx.exe -s stopnginx.exe -s quit停止
    stop是快速停止nginx,可能并不保存相关信息;quit是完整有序的停止nginx,并保存相关信息

3.重新载入

  • 修改完配置后使用命令nginx.exe -s reload重新载入nginx

你可能感兴趣的:(001.nginx windows下命令)