In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Nginx software
Implement a website server
Reverse proxy server
Proxy web, mail server
Nginx characteristics
Lightweight, high-performance HTTP server
High performance reverse proxy reverse proxy server
Based on modular design
Event-driven model based on EPOLL
There is no need to interrupt ongoing requests when reloading the configuration and upgrading online (nginx hot deployment)
Log writes with caching
URL rewrite (rewrite) module
Support verification of HTTP referer and implement anti-reverse chain mechanism
Support sendfile, directly encapsulate the data in the kernel response client, do not need to copy the data to the process address space
10000 inactive HTTP KEEPALIVE connections consume only 2.5m memory
Support for caching
Event-driven Model of nginx
When the Nginx server receives and processes client requests, it is based on the event-driven mechanism
SELECT
Linux, event-driven model supported by windows platform
First, create a collection of descriptors for events of interest. For each descriptor, you need to pay attention to the read event, write event, and exception event above it; so create three types of event descriptor sets
Call the underlying select () function to wait for the event to occur
Poll all event descriptors to see if any events have occurred, and if so, process them
POLL
Event-driven model supported by the Linux platform, introduced in the 2.1.23 kernel
Like select, you need to create a collection of descriptors that care about events, wait for events to occur, poll the descriptor set, detect if any events occur, and execute
Unlike select, which needs to create three types of descriptor sets, poll only needs to create one set, which creates read, write, and exception events under each descriptor, and can be polled at the same time.
Epoll (RHEL, CentOS)
After the introduction of Linux 2.5.44 kernel
The kernel is responsible for the management of the list of descriptors. Once an event occurs, the kernel notifies the process of the list of descriptors of the event to avoid polling and reduce system overhead.
Kqueue
An efficient event-driven model supporting BSD series platform
/ dev/poll
An efficient event-driven model supporting UNIX derivative platforms (unix, AIX, hp-unix)
Eventport
An efficient event-driven model supporting Solaris 10 and above platforms
Download Nginx software:
Http://nginx.org/
Http://www.nginx.cn/doc/
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.