1 Find nginx installation directory
Ps-ef | grep nginx
Oot2190810 One: -?xx:xx:xxNginx:Master Process * */usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx. conf**nobody21909219080 One: -?xx:xx:xxNginx:Worker Process Nobody21910219080 One: -?xx:xx:xxNginx:Worker Process Nobody21911219080 One: -?xx:xx:xxNginx:Worker Process Nobody21912219080 One: -?xx:xx:xxNginx:Worker process Root24883160570 -: thepts/2xx:xx:xxgrep nginx[root@iZ2558pjddbZSbin# ^c
Behind Master is the Nginx installation directory
2 Enter the installation directory Sbin (Cd/usr/local/nginx/sbin) to perform nginx-s reload
3 Another method
/usr/local/nginx/sbin/nginx-t-c/usr/local/nginx/conf/nginx.conf
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the article title Linux under How to restart Nginx, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.