Last active
June 1, 2016 00:49
-
-
Save tacionery/fbc3444cc7d2f09b4c88d0fc60abdf8b to your computer and use it in GitHub Desktop.
nginx ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# o nginx precisa de um certificado para ser instalado, | |
# com esse comando adicionamos o certificado | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7 | |
sudo apt-get install -y apt-transport-https ca-certificates | |
# adiciona o repositório do passenger, necessário para | |
# rodar apps rails no nginx | |
sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main > /etc/apt/sources.list.d/passenger.list' | |
sudo apt-get update | |
# agora vamos instalar o nginx e o passenger | |
sudo apt-get install -y nginx-extras passenger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment