Nginx.conf how to modify the configuration being reloaded into force on linux

Step follows
the first use of / usr / local / nginx / sbin / nginx -t normal modify the test configuration file
/ usr / local / nginx / sbin / nginx -s reload to reload

 

 

nginx need to restart to take effect after changes to the configuration file.
  1, change the configuration restart Nginx:  
  the kill -HUP main process number process ID or file path
  or using
  CD / usr / local / Nginx / sbin
  ./nginx -s reload
  2, determines whether the correct configuration file:  
  Nginx -C -t / usr /local/nginx/conf/nginx.conf
  or
  CD / usr / local / Nginx / sbin
  ./nginx -t

Guess you like

Origin www.cnblogs.com/zhuyeshen/p/10969167.html