目录

目录结构

进入 Nginx 的主目录我们可以看到这些文件夹

1├── client_body_temp
2├── conf
3│   ├── fastcgi.conf
4│   ├── fastcgi.conf.default
5│   ├── fastcgi_params
6│   ├── fastcgi_params.default
7│   ├── koi-utf
8│   ├── koi-win
9│   ├── mime.types
10│   ├── mime.types.default
11│   ├── nginx.conf
12│   ├── nginx.conf.default
13│   ├── scgi_params
14│   ├── scgi_params.default
15│   ├── uwsgi_params
16│   ├── uwsgi_params.default
17│   └── win-utf
18├── fastcgi_temp
19├── html
20│   ├── 50x.html
21│   └── index.html
22├── logs
23│   ├── access.log
24│   ├── error.log
25│   └── nginx.pid
26├── proxy_temp
27├── sbin
28│   └── nginx
29├── scgi_temp
30└── uwsgi_temp

其中这几个文件夹在刚安装后是没有的,主要用来存放运行过程中的临时文件

  • client_body_temp
  • fastcgi_temp
  • proxy_temp
  • scgi_temp

conf

  • 用来存放配置文件相关

html

  • 用来存放静态文件的默认目录 html、css 等

sbin

  • nginx 的主程序

基本运行原理

image-20220907111607186