nginx学习随笔–working_directory
- 英文原文:
Syntax: working_directory directory;
Default: —
Context: main
Defines the current working directory for a worker process. It is primarily used when writing a core-file, in which case a worker process should have write permission for the specified directory.
中文翻译:
为nginx工作进程定义当前工作目录。这主要用在写core文件的时候,工作进程要有写指定文件的权限。
nginx工作进程是以nobody用户运行的,没有往/目录写core文件的权限。所以需要用到这个指令。