Skip to content

nginx 入门到精通

nginx 快速入门

  • 什么是服务器

  • 如何连接远程服务器(ssh/浏览器)

  • window 安装 nginx

  • docker 安装 nginx

  • linux(centos)安装 nginx

  • nginx 部署前端 Vue 项目例子

  • nginx 前端开发环境反向代理例子

  • nginx.conf 配置文件介绍

  • nginx types 介绍

  • nginx location 介绍

  • nginx 变量介绍

  • nginx rewrite 介绍

  • nginx tryfile 介绍

  • nginx log 日志介绍

  • nginx worker_process

    • nginx master process
    • nginx worker process
  • nginx events

    nginx worker_connections(ulimit -n)

    最大并发数量是如何计算的

  • nginx http 缓存和超时(buffering/timeout)

    • client_body_buffer_size
    • client_max_body_size
    • client_body_timeout
    • client_header_timeout
    • keepalive_timeout
    • send_timeout
    • send_file
    • tcp_nopush
    • nginx addHeader 和缓存
  • nginx 动态模块

  • nginx https 配置

  • nginx http2 配置(自签名证书和阿里云申请免费证书)

  • nginx http3 配置

  • nginx gzip 压缩和 br 压缩(如何配置以及浏览器验证)

  • nginx 反向代理

  • nginx auth

  • nginx 负载均衡

  • docker nginx 实战部署 node.js 后端项目/vue 前端项目

  • docker nginx 实战部署 java 后端项目/vue 前端项目

Nginx 快速入门

  1. 什么是服务器

    • 服务器的基本概念和作用
  2. 如何连接远程服务器

    • 使用 SSH 和浏览器连接远程服务器的方法
  3. Nginx 安装

    • Windows 安装 Nginx
    • Docker 安装 Nginx
    • Linux(CentOS)安装 Nginx
  4. Nginx 配置入门

    • Nginx.conf 配置文件详解
    • Nginx Types 介绍
    • Nginx Location 详解
    • Nginx 变量使用
    • Nginx Rewrite 规则
    • Nginx Try Files 使用方法
    • Nginx 日志(Log)配置和应用
  5. Nginx 进程模型

    • Nginx Master Process 与 Worker Process
    • Nginx Events 与 Worker Connections(ulimit -n)
    • 最大并发数量理解
  6. HTTP 缓存与超时设置

    • 缓存控制:buffering 与 timeout 相关配置
    • 性能优化配置:包括 client_body_buffer_size、send_file 等
  7. Nginx 高级特性

    • 动态模块使用
    • addHeader 与缓存策略
    • HTTPS 配置与优化
    • HTTP/2 配置
    • HTTP/3 配置
    • Gzip 与 Brotli 压缩配置
  8. Nginx 作为中间件

    • 反向代理配置与应用
    • 身份验证(Auth)配置
    • 负载均衡配置与策略选择
  9. Docker Nginx 实战部署

    • 部署 Node.js 后端项目/Vue 前端项目
    • 部署 Java 后端项目/Vue 前端项目
    • nginx 作为反向代理中间件部署多个项目