So, NGINX 1.13.2 was released today, and I'd like to update my 1.13.1 installation. I can't simply use something like $ apt-get install nginx
because I'm using a few static modules in my build. Due to that, I have a few questions:
- Should I overwrite the existing files completely? I originally extracted NGINX itself to
/opt/nginx
so should I just$ tar -xvzf nginx-1.13.2 -C /opt/nginx
? - I'm guessing I'll need to run
./configure
again with the same values as before. When I runmake
should I use$ make upgrade
rather than$ make install
? - Is there anything else I should be aware of? I know about using the
USR2
andWINCH
signals to gracefully shutdown the old master process and start the new one, but I'm assuming that's after steps 1 and 2. Anything more I should know?
Thanks!
You should uncompress the new nginx tarball to a new directory, then reconfigure with your configure string with the same values as before. I usually run first make, then make install
This will overwrite the nginx files from your last version. You have to stop it for a second, usually it's best to do something like