Created
June 15, 2013 20:59
-
-
Save edipofederle/5789570 to your computer and use it in GitHub Desktop.
Instalação e Configuração 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
| #Instalando Dependências | |
| sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison nodejs subversion | |
| #Instando Ruby | |
| sudo apt-get update | |
| mkdir ~/downloads && cd ~/downloads | |
| sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz (ou versão desejada) | |
| tar xvfz ruby-1.9.3-p0.tar.gz | |
| cd ruby-1.9.3-p0 | |
| ./configure | |
| make | |
| sudo make install | |
| #Gems | |
| sudo gem update --system | |
| sudo apt-get install nodejs | |
| sudo gem install rails | |
| #Passenger | |
| gem install passenger | |
| passenger-install-nginx-module | |
| chown www-data config/environment.rb | |
| nginx -s reload | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment