Home > FreeBSD, Sys Admin > FreeBSD – reload nginx configuration

FreeBSD – reload nginx configuration

April 23rd, 2009 Leave a comment Go to comments

test the config !!!

sudo nginx -t

output :

2009/04/23 09:11:46 [info] 46329#0: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
2009/04/23 09:11:46 [info] 46329#0: the configuration file /usr/local/etc/nginx/nginx.conf was tested successfully

then reload :

sudo kill -HUP `cat /var/run/nginx.pid`

  1. No comments yet.
  1. No trackbacks yet.