|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/nginx-crash-course/
课程评论:没有评论
《NGINX入门》课程概述: 本课程将全面介绍NGINX,一款由C语言编写的开源Web服务器,同时也可作为反向代理和负载均衡器。学完本课程后,您将能掌握NGINX的基础知识,能够独立部署NGINX实例,并为其配置合法的SSL证书进行安全防护。 课程内容涵盖: * NGINX是什么? * NGINX的应用场景 * NGINX的Layer 4和Layer 7代理 * NGINX超时设置 * 在Mac上安装NGINX * NGINX作为Web服务器:处理静态内容 * NGINX中的正则表达式 * `proxy_pass`指令 * NGINX作为Layer 7反向代理: * 代理到4个后端的NodeJS服务(使用Docker) * IP_Hash负载均衡 * 将流量分配给多个后端(app1/app2) * 阻止特定请求(如`/admin`) * NGINX作为Layer 4反向代理 * 创建DNS记录 * 在NGINX上启用HTTPS(Let's Encrypt) * 在NGINX上启用TLS 1.3 * 在NGINX上启用HTTP/2 关于NGINX的简述: NGINX是为解决 **C10K(并发1万连接)问题** 而设计的少数服务器之一。与传统服务器不同,NGINX不依赖线程来处理请求,而是采用了更具扩展性的 **事件驱动(异步)架构**。这种架构在负载下能保持可预测的、极少的内存占用。即使您的应用不预期处理数千个并发请求,也能从NGINX的高性能和低内存占用中受益。NGINX具备全方位的扩展能力,可以适应从最小的VPS到大型服务器集群的各种场景。
NGINX is an open-source web server written in C and can also be used as a reverse proxy and a load balancer. This class Is an introduction to NGINX, by the end of this class you will be able to understand the fundamentals of NGINX and spin up your own instance and even secure it with a legitimate certificate. Here are the topics that I will discuss:What is NGINX? NGINX Use CasesLayer 4 and Layer 7 Proxying in Nginx NGINX TimooutsExampleInstall Nginx (mac) Nginx as a Web Server Static contentRegular expression in NGINXproxy_passNginx as a Layer 7 ProxyProxy to 4 backend NodeJS services (docker)IP_Hash load balancingSplit load to multiple backends (app1/app2)Block certain requests (/admin)NGINX as a Layer 4 ProxyCreate DNS recordEnable HTTPS on NGINX (lets encrypt)Enable TLS 1.3 on NGINXEnable HTTP/2 on NGINXA small blurb about NGINXNGINX is one of a handful of servers written to address the C10K problem. Unlike traditional servers, NGINX doesn't rely on threads to handle requests. Instead it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts of memory under load. Even if you don't expect to handle thousands of simultaneous requests, you can still benefit from NGINX's high-performance and small memory footprint. NGINX scales in all directions: from the smallest VPS all the way up to large clusters of servers.