Skip to content

Instantly share code, notes, and snippets.

@tpitale
Created September 18, 2009 15:39
Show Gist options
  • Select an option

  • Save tpitale/189115 to your computer and use it in GitHub Desktop.

Select an option

Save tpitale/189115 to your computer and use it in GitHub Desktop.
In Place NGINX upgrade
curl -O http://sysoev.ru/nginx/nginx-0.7.62.tar.gz
tar zxvf nginx-0.7.62.tar.gz
cd nginx-0.7.62
sudo /usr/local/nginx/sbin/nginx -V
./configure --with-http_ssl_module --add-module=/usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/nginx
sudo make install clean
OLDPID=`cat /usr/local/nginx/logs/nginx.pid`
sudo kill -USR2 $OLDPID
sudo kill -WINCH $OLDPID
sudo kill -QUIT $OLDPID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment