NGINX 是当今使用最广泛的 Web 服务器之一,部分原因在于
它可以用作 HTTP 和其他网络协议的负载均衡器和反向代理服务
器。本修订版完全指南通过一些简单易懂的例子解析了应用交
付中真实存在的问题。实用的实操指南可帮助您设置开源或商
业产品,并利用它们解决各种用例中的问题。
对于了解现代 Web 架构(例如 n 层或微服务设计以及 TCP 和
HTTP 等常见 Web 协议)的专业人士来说,本书的这些实操指
南为安全和软件负载均衡以及 NGINX 应用交付平台的监控和维
护提供了经过验证的解决方案。您还将了解到免费的 NGINX 开
源版以及许可授权版 NGINX Plus 的高级功能。
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A hands-on recipe collection for engineers who already understand modern web architecture and now need to configure NGINX (open source or Plus) for real application-delivery problems—load balancing, security, caching, cloud/container deployment, and operations. Best for practitioners who want working configurations and the reasoning behind them, not a from-zero tutorial.
【Book Arc】
- **Opening (~0%–13%)**: Installation and fundamentals—setting up NGINX on Debian/Ubuntu and RedHat/CentOS, installing NGINX Plus, verifying the install, and learning the key files, directories, and commands. Solves the "get it running and know where things live" problem.
- **Early (~13%–33%)**: Core delivery mechanics—HTTP/TCP/UDP load balancing, session persistence, health checks, traffic management (A/B testing, GeoIP, rate/connection/bandwidth limits), large-scale caching, and programmability/automation (Plus API, key-value store, njs, Chef/Ansible/Consul).
- **Middle (~33%–53%)**: Security and modern protocols—authentication (basic auth, subrequests, JWT, OpenID Connect), access control and TLS, HTTP/2 and gRPC, plus media streaming (MP4/FLV, HLS/HDS).
- **Late (~53%–67%)**: Deployment environments—cloud (AWS, Azure, Google Compute Engine), containers and microservices (API gateway, Docker images, Kubernetes Ingress, service mesh/mTLS), high-availability patterns, and monitoring.
- **Ending (~67%–100%)**: Operations and tooling—logging and request tracing, performance tuning, NGINX Instance Manager and Controller, and practical ops tips like includes and config debugging.
【Key Takeaways】
- **This is a cookbook, not a linear textbook** (Early): each section is framed as problem → solution → explanation, so it works best as a reference you jump into by task.
- **Load balancing spans HTTP, TCP, and UDP** (Early): the `upstream` pattern recurs across the `http` and `stream` contexts, with algorithms like round-robin, least connections, and Plus-only least-time.
- **Session persistence is a first-class concern** (Early): NGINX Plus offers sticky cookie, sticky learn, and sticky routing for stateful applications where requests must return to the same server.
- **Health checks split into passive (open source) and active (Plus)** (Early): passive checks watch live traffic, while active checks probe upstreams proactively to avoid client-facing failures.
- **NGINX is often the first security boundary** (Middle): the book treats authentication, TLS, access control, and WAF/DDoS protection as core delivery concerns, not add-ons.
- **Caching and traffic management are tunable levers** (Early): cache zones, locking, hash keys, bypass, and slicing, alongside rate, connection, and bandwidth limits.
- **Cloud, containers, and service mesh are covered as deployment targets** (Late): AWS/Azure/GCP patterns, Docker images, Kubernetes Ingress, and mTLS mesh setups.
- **Operations close the loop** (Ending): logging, tracing, performance tuning, and management tooling (Instance Manager, Controller) round out the lifecycle.
【Reading Tips】
- Use the table of contents as your entry point: jump straight to the chapter matching your current task rather than reading cover to cover.
- Deep-read the load balancing, security, and caching chapters—these are the highest-leverage for production delivery work.
- Skim the installation and cloud-provider chapters if you already have a working environment; return when migrating platforms.
- Watch for the recurring "NGINX Plus only" annotations—many advanced features (active health checks, least-time, JWT, sticky sessions) are not in the open source edition.
- Treat the config snippets as starting points and always validate with `nginx -t` before reloading.
【Coverage Limits】
This guide is synthesized from stratified excerpts covering the front matter, table of contents, and early-to-mid chapters; later chapters on Instance Manager, Controller, and detailed ops tips are only visible at the heading level, so their specific content is not summarized here.
Page 4
Kim Cofer 英文版校对:JM Olejarz O'Reilly 徽标是 O'Reilly Media, Inc. 的注册商标。《NGINX 完全指南》、封面图片和相关商业包 装是 O'Reilly Media, Inc. 的商标。 本书所述均为作者的个人观点,不代表出版商的立场。虽然出版商和作者已经做出了...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Nginx完全指南 (Derek DeJonghe)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share to WeChat Moments
Nginx完全指南 (Derek DeJonghe)(Z-Library)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Nginx完全指南 (Derek DeJonghe)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment