Skip to content

Instantly share code, notes, and snippets.

@felipekm
Created July 31, 2020 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipekm/283d3af8df871518b1528202cf13ba9c to your computer and use it in GitHub Desktop.
Save felipekm/283d3af8df871518b1528202cf13ba9c to your computer and use it in GitHub Desktop.
how to update nginx
#!/bin/shell
sudo mkdir /etc/nginx-backup/
sudo cp -r /etc/nginx/* /etc/nginx-backup/
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get full-upgrade
sudo nginx -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment