nginx 学习笔记之nginx初探(一)

什么是nginx?nginx的wiki描述如下所示:
NGINX is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. NGINX is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.

NGINX 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.

从上述内容中我们可得知nginx 开源的高性能的代理服务器,主要服务包含三个方面:
1、http服务
2、反向代理
3、IMAP/POP3 邮箱代理服务

nginx正向代理代理的是客户端,反向代理代理的是服务端,比起传统的服务器具有的优点是:
1、不依赖线程处理请求
2、采用事件驱动结构体系
3、较小的存储封装,可以测的存储使用量
4、使用范围广

nginx是由俄罗斯程序大佬戈尔·赛索耶夫和它的团队共同完成,我们来瞻仰一下这位俊才的美照。

nginx 学习笔记之nginx初探(一)