Command-line parameters
命令行参数

nginx supports the following command-line parameters:
nginx支持以下命令行参数

-? | -h — print help for command-line parameters.
-? | -h —打印命令行参数的帮助

-c file — use an alternative configuration file instead of a default file.
-c file —使用可选的配置文件替代默认的配置文件

-g directives — set global configuration directives, for example,
-g 指令 —设置全局配置指令,例如
nginx -g "pid /var/run/nginx.pid; worker_processes sysctl -n hw.ncpu;"

-p prefix — set nginx path prefix, i.e. a directory that will keep server files (default value is /usr/local/nginx).
-p prefix —设置nginx的预设路径。例如:一个将要保存服务器文件的目录(默认值是/usr/local/nginx)

-q — suppress non-error messages during configuration testing.
-q —在配置文件测试期间抑制非错误消息

-s signal — send a signal to the master process. The argument signal can be one of:
-s 信号 — 发送一个信号给主进程。参数信号可以是下列之一:
stop — shut down quickly
stop — 迅速关闭
quit — shut down gracefully
quit — 优雅的关闭
reload — reload configuration, start the new worker process with a new configuration, gracefully shut down old worker processes.
reload — 重载配置文件,用新的配置文件开启新的工作进程。优雅的关闭旧的进程。(也就是等旧的进程完成工作以后再结束它,不接受新的工作。)
reopen — reopen log files
reopen — 重新打开日志文件

-t — test the configuration file: nginx checks the configuration for correct syntax, and then tries to open files referred in the configuration.
-t —测试配置文件:nginx检查配置文件的语法,然后尝试打开配置文件中涉及的文件。

-T — same as -t, but additionally dump configuration files to standard output (1.9.2).
-T — 与-t参数一样,但另外还要将配置文件转储到标准输出。

-V — print nginx version, compiler version, and configure parameters.
-V — 打印nginx的版本,编译版本和配置参数

原文链接: http://nginx.org/en/docs/switches.html

nginx 支持的命令行参数的更多相关文章

  1. CEF 支持的命令行参数

    参考:https://peter.sh/experiments/chromium-command-line-switches/ List of Chromium Command Line Switch ...

  2. 运行FreeSWITCH的命令行参数

    一般来说,FreeSWITCH 不需要任何命令行参数就可以启动,但在某些情况下,你需要以一些特殊的参数启动.在此,仅作简单介绍.如果你知道是什么意思,那么你就可以使用,如果不知道,多半你用不到. 使用 ...

  3. Hive Beeline 命令行参数

    [hadoop@hive ~]$ beeline --help[中文版] The Beeline CLI 支持以下命令行参数: Option Description --autoCommit=[tru ...

  4. nginx命令行参数和信号

    nginx命令行参数 [user@host dir]$ /usr/local/nginx/sbin/nginx -hnginx version: nginx/1.8.0Usage: nginx [-? ...

  5. .NET Core采用的全新配置系统[5]: 聊聊默认支持的各种配置源[内存变量,环境变量和命令行参数]

    较之传统通过App.config和Web.config这两个XML文件承载的配置系统,.NET Core采用的这个全新的配置模型的最大一个优势就是针对多种不同配置源的支持.我们可以将内存变量.命令行参 ...

  6. 运行和控制Nginx——命令行参数和信号

    参考资料: Nginx中文文档: http://www.nginx.cn/nginxchscommandline Nginx的启动.停止.平滑重启.信号控制和平滑升级:http://zachary-g ...

  7. Win32程序支持命令行参数的做法(转载)

    转载:http://www.cnblogs.com/lanzhi/p/6470406.html 转载:http://blog.csdn.net/kelsel/article/details/52759 ...

  8. Win32程序支持命令行参数的做法

    作者:朱金灿 来源:http://blog.csdn.net/clever101 首先说说Win 32 API程序如何支持命令行参数.Win 32程序的入口函数为: int APIENTRY _tWi ...

  9. nginx使用手册--nginx的命令行参数

    nginx的命令行参数 -? 或者 -h 打印命令行参数帮助信息 -c file 为 Nginx 指定一个配置文件,来代替缺省的. -t 不运行,而仅仅测试配置文件.nginx 将检查配置文件的语法的 ...

随机推荐

  1. smtplib.SMTPDataError: (554, b'DT:SPM 163……)

    1.报错535: 未将POP3/SMTP服务开启.通过在163邮箱内 设置 获取授权码  打开,通过授权码可以进行第三方登录.此处的Password填写授权码. 2.报错554: 第一种情况:缺失发件 ...

  2. idea 报错 :error:java:Compilation failed:internal java compiler error

    当使用Tomcat运行项目时报错 翻译一下是 错误:Java:编译失败:内部Java编译器错误 这样看来更不理解了 其实原因是Java的版本不一致 查看项目的jdk版本是否一致: file----pr ...

  3. Vertical viewport was given unbounded height

    new Expanded( child: new ListView( ..... ) ); +++++++++++++++ 可以通过指定shrinkWrap = true为了你ListView. Li ...

  4. CSS 文件引入

    CSS 文件引入 <html> <head> <!-- link标签引用其他文件.rel="stylesheet" 引用css.href=" ...

  5. CSS 页面布局、后台管理示例

    CSS 页面布局.后台管理示例 页面布局 1.头部菜单 2.中间内容/中间左侧菜单 3.底部内容 <div class='pg-header'> <div style='width: ...

  6. Oracle之with as和update用法

    许久不用,又忘了,做个记录 update test b set b.code=(with t as(select t.id,code||'_'||row_number() over(partition ...

  7. 剑指offer(40)数组中只出现一次的数字

    题目描述 一个整型数组里除了两个数字之外,其他的数字都出现了两次.请写程序找出这两个只出现一次的数字. 题目分析 第一种方法:使用js中的indexOf()和lastIndexOf(),只要两个相等, ...

  8. Intellj IDEA光标问题

    Intellj IDEA光标为insert状态,无法删除内容以前用得是社区版的IDEA,今天装了14版本的,结果导入项目后,发现打开java文件的光标是win系统下按了insert键后的那种宽的光标, ...

  9. C#设置IE代理

    public class IEProxySetting { public static bool UnsetProxy() { return SetProxy(null, null); } publi ...

  10. PHP冒泡排序-手写

    <?php $a = [1,3,5,2,9,6]; for ($i = 0 ;$i < count($a) ;$i++) { for ($j = $i + 1;$j < count( ...