`
流浪鱼
  • 浏览: 1697185 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics