nginx管理命令

D:\2015软件\nginx-1.8.0>nginx -h
nginx version: nginx/1.8.0
Usage: nginx [-?hvVtq] [-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
  -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

自己使用的命令

--检查配置文件是否正确
./nginx -t
--重新启动nginx
./nginx -s reload
--停止nginx
./nginx -s stop

猜你喜欢

转载自liuna718-163-com.iteye.com/blog/2229786