In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "how to get started with Nginx". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to get started with Nginx" can help you solve your doubts.
Nginx is a performance-oriented HTTP server, which has the advantages of less memory and high stability compared with Apache and lighttpd.
An introduction to Nginx 1.1Nginx features
Modular design, good expansibility
High reliability
Support for hot deployment: update configuration files, upgrade versions, and replace log files without downtime
Low memory consumption: 10000 inactive connections in keep-alive connection mode, requiring only 2.5m memory event-driven,aio,mmap,sendfile
Basic functions of 1.2Nginx
Web server for static resources
Http protocol reverse proxy server
Pop3/imap4 protocol reverse proxy server
FastCGI (lnmp), uWSGI (python) and other protocols
Modular (non-DSO), such as zip,SSL module
1.3Nginx functions related to web services
Virtual host (server)
Support for keep-alive and pipe connections
Access logs (support to improve performance based on log buffering)
Url rewirte path alias
Access Control based on IP and users
Support rate limit and concurrency limit
Reconfigure and upgrade online without interrupting the customer's work process
GET interface of Memcached
2. Nginx service architecture master/worker structure
Master process: responsible for loading and analyzing configuration files, managing worker processes, and smoothly upgrading
Worker process: receive client request, send the request to each module at once, filter, call Imax O, cache data, send response
Cache related processes: cache loader (cache index reconstruction) and cache manager (cache index management)
-Cache loader is generated by the main process after the Nginx service starts, and then exits after the index Metabase is established according to the cache on the local disk.
-Cache manager determines whether the metadata is out of date after the metadata update is completed.
III. Components of the configuration file structure of Nginx
Master profile: nginx.conf
Subprofile: include conf.d/*.conf
Fastcgi, uwsgi, scgi: and other protocol-related configuration files. Under the root path
Mime.types: supported mime types. Under the root path
Fourth, basic configuration examples to explain here, this "how to get started with Nginx" article has been introduced, want to master the knowledge of this article still need to practice and use in order to understand, if you want to know more related articles, welcome to pay attention to the industry information channel.
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.