没有合适的资源?快使用搜索试试~ 我知道了~
首页Complete-NGINX-Cookbook-2019-update
To get started with NGINX Open Source or NGINX Plus, you first need to install it on a system and learn some basics. In this chapter you will learn how to install NGINX, where the main configuration files are, and commands for administration. You will also learn how to verify your installation and make requests to the default server.
资源详情
资源评论
资源推荐

Derek DeJonghe
NGINX
Cookbook
Advanced Recipes for High Performance
Load Balancing
2019
Update
Compl
ime
nts
o
f

Download at nginx.com/freetrial
Cost Savings
Over 80% cost savings
compared to hardware
application delivery con-
trollers and WAFs, with
all the performance and
features you expect.
Get high‑performance application delivery for
microservices. NGINX Plus is a software load
balancer, web server, and content cache.
The NGINX Web Application Firewall (WAF)
protects applications against sophisticated
Layer 7 attacks.
Try NGINX Plus
and NGINX WAF
free for 30 days
NGINX WAF
A trial of the
NGINX WAF, based
on ModSecurity,
is included when you
download a trial of
NGINX Plus.
Exclusive Features
JWT authentication,
high availability, the
NGINX Plus API, and
other advanced
functionality are only
available in NGINX Plus.
Reduced Complexity
The only all-in-one
load balancer, content
cache, web server,
and web application
firewall helps reduce
infrastructure sprawl.

Derek DeJonghe
NGINX Cookbook
Advanced Recipes for High
Performance Load Balancing
2019 UPDATE
Boston Farnham Sebastopol
Tokyo
Beijing Boston Farnham Sebastopol
Tokyo
Beijing

978-1-491-96893-2
[LSI]
NGINX Cookbook
by Derek DeJonghe
Copyright © 2019 O’Reilly Media Inc. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA
95472.
O’Reilly books may be purchased for educational, business, or sales promotional use.
Online editions are also available for most titles (http://oreilly.com/safari). For more
information, contact our corporate/institutional sales department: 800-998-9938 or
corporate@oreilly.com.
Development Editor: Virginia Wilson
Acquisitions Editor: Brian Anderson
Production Editor: Justin Billing
Copyeditor: Octal Publishing, LLC
Proofreader: Chris Edwards
Interior Designer: David Futato
Cover Designer: Karen Montgomery
Illustrator: Rebecca Demarest
March 2017:
First Edition
Revision History for the First Edition
2017-05-26: First Release
2018-11-21: Second Release
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. NGINX Cook‐
book, the cover image, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the author have used good faith efforts to ensure that the
information and instructions contained in this work are accurate, the publisher and
the author disclaim all responsibility for errors or omissions, including without limi‐
tation responsibility for damages resulting from the use of or reliance on this work.
Use of the information and instructions contained in this work is at your own risk. If
any code samples or other technology this work contains or describes is subject to
open source licenses or the intellectual property rights of others, it is your responsi‐
bility to ensure that your use thereof complies with such licenses and/or rights.
This work is part of a collaboration between O’Reilly and NGINX. See our statement
of editorial independence.

Table of Contents
Foreword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ix
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1. Basics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.0 Introduction
1
1.1 Installing on Debian/Ubuntu 1
1.2 Installing on RedHat/CentOS 2
1.3 Installing NGINX Plus 3
1.4 Verifying Your Installation 4
1.5 Key Files, Commands, and Directories 5
1.6 Serving Static Content 7
1.7 Graceful Reload 8
2. High-Performance Load Balancing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.0 Introduction
9
2.1 HTTP Load Balancing 10
2.2 TCP Load Balancing 11
2.3 UDP Load Balancing 13
2.4 Load-Balancing Methods 14
2.5 Sticky Cookie 17
2.6 Sticky Learn 18
2.7 Sticky Routing 19
2.8 Connection Draining 20
2.9 Passive Health Checks 21
2.10 Active Health Checks 22
2.11 Slow Start 24
iii
剩余174页未读,继续阅读



















安全验证
文档复制为VIP权益,开通VIP直接复制

评论1