Skip to content

Instantly share code, notes, and snippets.

@hewersonfreitas
Created January 30, 2020 01:17
Show Gist options
  • Save hewersonfreitas/5f7ee38f086d8ef80ade0708bc9d04f8 to your computer and use it in GitHub Desktop.
Save hewersonfreitas/5f7ee38f086d8ef80ade0708bc9d04f8 to your computer and use it in GitHub Desktop.
// Uninstall Nginx
sudo apt-get remove nginx nginx-full nginx-common
//Then, install Nginx following document: http://nginx.org/en/linux_packages.html#Ubuntu
sudo apt install curl gnupg2 ca-certificates lsb-release
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx"| sudo tee /etc/apt/sources.list.d/nginx.list
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
sudo apt update
sudo apt install nginx nginx-full nginx-common
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment