29 August 2016

Update Nginx Commands

Nginx is the fastest web server which is started to used widely.
Several cloud platforms let us to install and manage nginx on cloud virtual machines.
Sometimes important security updates are published.
We need to update our web server to stay up to date.
Here is the simple commands to update nginx on cloud platforms.

sudo apt-get update         # Fetch the list of available updates
sudo apt-get dist-upgrade   # Install the updates

Than a restart may required.

sudo service nginx restart