工具技巧Java技术分享Linux大全

Windows下启动,关闭Nginx命令

2020-02-28  本文已影响0人  Belmode
启动
  1. 直接点击Nginx目录下的nginx.exe
  2. cmd运行start nginx(start nginx.exe)
  3. Bat中,通过 cmd /k start nginx(.exe)来启动
关闭
  1. nginx -s stop
  2. nginx -s quit
重启(因为改变了配置,需要重启)
nginx -?/nginx -h
nginx version: nginx/1.9.4
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
上一篇下一篇

猜你喜欢

热点阅读