云伴侣-云伴侣是管理云服务器、云主机最简单、最省心的方式.

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1798|回复: 0

Tengine基础--命令行控制

[复制链接]
发表于 2012-5-9 21:41:05 | 显示全部楼层 |阅读模式
先做个软链接方便使用:
  1. ln -s /usr/local/nginx/sbin/nginx /bin
复制代码
参数列表:
  1. -?,-h         : this help
  2.   -v            : show version and exit
  3.   -m            : show all modules and exit
  4.   -l            : show all directives and exit
  5.   -V            : show version, modules and configure options then exit
  6.   -t            : test configuration and exit
  7.   -d            : dump configuration and exit
  8.   -q            : suppress non-error messages during configuration testing
  9.   -s signal     : send signal to a master process: stop, quit, reopen, reload
  10.   -p prefix     : set prefix path (default: /usr/local/nginx/)
  11.   -c filename   : set configuration file (default: conf/nginx.conf)
  12.   -g directives : set global directives out of configuration file
复制代码
控制:
  1. nginx -s stop             #快速停止
  2. nginx -s quit              #正常退出
  3. nginx -s reopen         #重新打开日志文件
  4. nginx -s reload          #重载配置
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|云伴侣 ( 粤ICP备14022677号-1 )| 亚丁云旗下站点

GMT+8, 2024-4-27 15:25

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表