找回密码
 立即注册
Nginxthe服务器and | 软件工程 2022-04-28 208 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
上一讲我们看到了高性能的Web服务器Nginx,它占用资源少,处理能力高,是建站的首选。
虽然 Nginx 已经成为 Web 服务器领域无可争议的“王者”,但也不是没有缺点,毕竟已经 15 岁了。
“一个人很难超越时代,但时代却可以轻松超越所有人。” Nginx 最初设计的应用场景发生了变化,它的一些缺点也暴露出来了。
Nginx 的服务管理思想延续了当时流行的做法,使用磁盘上的静态配置文件,所以每次修改后必须重启才能生效。
这在业务变化频繁时(比如流行的微服务架构)是非常致命的,尤其是对于一个拥有上千台服务器的网站,仅仅增加或删除行配置就会分发和重启所有机器,对运营和运营都是一个非常大的挑战。维护,需要大量的时间和精力,成本非常高,非常不灵活,很难“随需而变”。
那么,有没有这样一款兼具 Nginx 优点但又没有 Nginx 缺点的、轻量级、高性能、灵活且可动态配置的 Web 服务器呢?
这就是我今天所说的 OpenResty,一个“更好、更灵活的 Nginx”。

(Last time, we saw the high-performance web server nginx, which occupies less resources and has high processing capacity. It is the first choice for building a website.Although nginx has become the undisputed "King" in the field of web server, it is not without shortcomings. After all, it is 15 years old."It is difficult for a person to surpass the times, but the times can easily surpass everyone." The application scenario originally designed by nginx has changed, and some of its shortcomings have been exposed.Nginx's service management idea continues the popular practice at that time, using the static configuration file on the disk, so it must be restarted after each modification to take effect.This is very fatal when the business changes frequently (such as the popular micro Service Architecture). Especially for a website with thousands of servers, just adding or deleting the line configuration will distribute and restart all machines, which is a great challenge to the operation and operation. Maintenance requires a lot of time and energy. The cost is very high and inflexible. It is difficult to "change as needed".So, is there such a lightweight, high-performance, flexible and dynamically configurable web server that has the advantages of nginx but no disadvantages of nginx?This is what I call openresty today, a "better and more flexible nginx".)

[下载]09065592839.rar




上一篇:Nginx:高性能的Web服务器.pdf
下一篇:编写高质量代码:Web前端开发修炼之道.pdf