#first please check pid file by:
cat /var/run/nginx.pid
#copy new binary to /sbin/nginx and force overwrite if you don't use option "-f" you will see this error :cp: cannot create regular file ‘/sbin/nginx’: Text file busy/bin/cp -f nginx /sbin/nginx#spawn a new nginx master/workers setkill -s USR2 `cat /var/run/nginx.pid`#check processps aux | grep nginx# check pidtail -n +1 /var/run/nginx.pid*#shut down the old master's workerkill -s WINCH `cat /var/run/nginx.pid.oldbin`#checkps aux | grep nginx# safely shut down the old master processkill -s QUIT `cat /var/run/nginx.pid.oldbin`
No comments:
Post a Comment
Thanks for your join,we will be reply to you asap.