Created
January 5, 2012 11:35
-
-
Save jbochi/1564904 to your computer and use it in GitHub Desktop.
Instalação NGINX v1.0.11 com módulo redis2 v0.07 e perl v5.14.2 e lua 2.0
This file contains 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
cd /tmp | |
wget http://nginx.org/download/nginx-1.0.11.tar.gz | |
tar -xzvf nginx-1.0.11.tar.gz | |
wget https://github.com/agentzh/redis2-nginx-module/tarball/v0.07 -O redis2-nginx-module-0.07.tar.gz | |
tar -xzvf redis2-nginx-module-0.07.tar.gz | |
wget http://www.cpan.org/src/5.0/perl-5.14.2.tar.gz | |
tar -xzvf perl-5.14.2.tar.gz | |
cd perl-5.14.2 | |
./Configure -des -Dprefix=$HOME/localperl | |
make | |
make test | |
make install | |
cd .. | |
wget http://luajit.org/download/LuaJIT-2.0.0-beta9.tar.gz | |
tar -xzvf LuaJIT-2.0.0-beta9.tar.gz | |
cd LuaJIT-2.0.0-beta9 | |
make | |
make install | |
ln -sf /usr/local/bin/luajit-2.0.0-beta9 /usr/local/bin/luajit | |
cd .. | |
wget https://github.com/simpl/ngx_devel_kit/tarball/v0.2.17rc2 -O ngx_devel_kit.tar.gz | |
tar -xzvf ngx_devel_kit.tar.gz | |
wget https://github.com/chaoslawful/lua-nginx-module/tarball/v0.4.1rc3 -O lua-nginx-module.tar.gz | |
tar -xzvf lua-nginx-module.tar.gz | |
export LUAJIT_INC=/usr/local/include/luajit-2.0/ | |
export LUAJIT_LIB=/usr/local/lib/ | |
cd ../nginx-1.0.11 | |
./configure --prefix=/opt/nginx \ | |
--add-module=/tmp/agentzh-redis2-nginx-module-6f7fc37/ \ | |
--add-module=/tmp/simpl-ngx_devel_kit-bc97eea/ \ | |
--add-module=/tmp/chaoslawful-lua-nginx-module-dc37474/ \ | |
--with-http_perl_module \ | |
--with-perl=$HOME/localperl/bin/perl | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment