1,Nginx (Engine x): HTTP and reverse proxy server, mail proxy Server, general TCP/UDP Proxy Server.
2. Nginx Process
Nginx has a master process and several worker processes. The primary task of the master process is to read and examine the configuration and maintain worker processes, which are responsible for processing requests. Nginx uses an event-based model and an OS-dependent mechanism to effectively distribute requests in worker processes.
After booting, the nginx-s signal can be used to control the nginx,signal with stop (fast shutdown), quit (Graceful shutdown: Wait until the worker process finishes processing the request and then stop the nginx process), reload (reload the configuration), Reopen (reopen the log file).
When the master process receives a reload signal, it checks the syntax and attempts to apply the new configuration. If successful, the master process starts a new worker process and requests the old worker process to exit (stop accepting new connections and continue processing existing requests until completed); otherwise, the master process rolls back the configuration.
You can also send a signal to the Nginx process with UNIX kill. For example, send a quit signal to the master process (PID 1628): Kill-s quit 1628.
The PID of the master process is saved by default in the Nginx.pid (/usr/local/nginx/logs or/var/run directory).
3. Configuration files
Resources:
http://nginx.org/
Continue to learn in ...
Getting Started with Nginx