Home > Article > System Tutorial > Nginx Getting Started Tutorial
Modular design, good scalability
High reliability
Support hot deployment: update configuration files, upgrade versions, and replace log files without downtime
Low memory consumption: 10,000 inactive connections in keep-alive connection mode only require 2.5M memory event-driven, aio, mmap, sendfile
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) like zip, SSL modules
Virtual host (server)
Support keep-alive and pipe connections
Access log (supports improving its performance based on log buffering)
url rewirte path alias
Access control based on IP and user
Supports rate limit and concurrency limit
Reconfiguration and online upgrades without interrupting customer work processes
Memcached’s GET interface
Master process: Responsible for loading and analyzing configuration files, managing worker processes, and smooth upgrades
Worker process: Receive client requests, send requests to each module at once for filtering, I/O calls, data caching, and send responses
Cache-related processes: composed of cache loader (cache index reconstruction) and cache manager (cache index management)
--Cache loader is generated by the main process after the Nginx service is started, and exits after establishing an index metadata database based on the cache on the local disk.
--Cache manager makes a judgment on whether the metadata has expired after the metadata update is completed.
Main configuration file: nginx.conf
Sub-configuration file: 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
The above is the detailed content of Nginx Getting Started Tutorial. For more information, please follow other related articles on the PHP Chinese website!