: This article mainly introduces the simple control of the Nginx service. if you are interested in the PHP Tutorial, refer to it.
Introduction: This article briefly introduces how to start and stop Nginx.
1. start Nginx
On Linux, to start the Nginx service, you only need to locate the working directory to the Nginx installation directory and execute it directly. As shown in:
It is not difficult to find that Nginx started through the default configuration has two processes, one being the master process and the other being the worker process ).
2. stop Nginx
Nginx has two stop methods: Quick Stop (disconnect all links immediately) and gentle stop (keep the current link until it is actively disconnected, new links will not be accepted during this period ).
Quick Stop: (describes the nginx startup and quick stop processes)
Gentle stop: (describes the start and gentle stop processes of nginx)
In addition to the stop and quit commands, you can also use the reopen and reload parameters to restart and reload.
You can use the following command to view detailed nginx parameter help information:
[Root @ localhost sbin] #./nginx-h
Shows the execution result.
References
1. edited by Miao Ze, Nginx high-performance Web server, Beijing: Electronics industry press, 2013.10
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above introduces the simple control of the Nginx service, including some content, and hope to be helpful to friends who are interested in the PHP Tutorial.