Skip to content

Commit

Permalink
bash bloc
Browse files Browse the repository at this point in the history
  • Loading branch information
desbouis committed Dec 14, 2011
1 parent e2cc216 commit cee0dfd
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ see : http://www.lua.org/ - http://luajit.org/

First, you must have these packages :

```
```bash
$ yum install ncurses-devel readline-devel
```

Then, install Lua :

```
```bash
$ cd /opt/install
$ wget http://www.lua.org/ftp/lua-5.1.tar.gz
$ tar zxvf lua-5.1.tar.gz
Expand All @@ -74,7 +75,7 @@ $ make install

LuaJIT will be installed in /opt/luajit.

```
```bash
$ cd /opt/install
$ wget http://luajit.org/download/LuaJIT-2.0.0-beta8.tar.gz
$ tar zxvf LuaJIT-2.0.0-beta8.tar.gz
Expand All @@ -88,13 +89,13 @@ $ ln -s luajit-2.0.0-beta8 luajit

Add this in the .bash_profile :

```
```bash
export LD_LIBRARY_PATH=/opt/luajit/lib:$LD_LIBRARY_PATH
```

## LuaRedisParser :

```
```bash
$ wget --no-check-certificate https://github.com/agentzh/lua-redis-parser/tarball/v0.09rc5
$ mv v0.09rc5 lua-redis-parser_v0.09rc5.tar.gz
$ tar zxvf lua-redis-parser_v0.09rc5.tar.gz
Expand All @@ -109,28 +110,28 @@ Download and uncompress all these nginx modules :

#### HttpSetMiscModule :

```
```bash
$ wget --no-check-certificate https://github.com/agentzh/set-misc-nginx-module/tarball/v0.22rc2
$ tar zxvf ...
```

#### HttpUpstreamKeepaliveModule :

```
```bash
$ wget http://mdounin.ru/hg/ngx_http_upstream_keepalive/archive/tip.tar.gz
$ tar zxvf ...
```

#### HttpHeadersMoreModule :

```
```bash
$ wget --no-check-certificate https://github.com/agentzh/headers-more-nginx-module/tarball/v0.16rc2
$ tar zxvf ...
```

#### HttpRedis2Module :

```
```bash
$ wget --no-check-certificate https://github.com/agentzh/redis2-nginx-module/tarball/v0.07rc6
$ tar zxvf ...
```
Expand All @@ -139,7 +140,7 @@ $ tar zxvf ...

Note : NDK (Nginx Development Kit) is needed to compile nginx with HttpLuaModule - cf. http://wiki.nginx.org/HttpLuaModule

```
```bash
$ wget --no-check-certificate https://github.com/simpl/ngx_devel_kit/tarball/v0.2.17rc2
$ tar zxvf ...
$ wget --no-check-certificate https://github.com/chaoslawful/lua-nginx-module/tarball/v0.3.1rc24
Expand All @@ -148,14 +149,14 @@ $ tar zxvf ...

#### HttpEchoModule :

```
```bash
$ wget --no-check-certificate https://github.com/agentzh/echo-nginx-module/tarball/v0.37rc4
$ tar zxvf ...
```

## Nginx :

```
```bash
$ cd /opt/install
$ wget http://nginx.org/download/nginx-1.0.9.tar.gz
$ tar zxvf nginx-1.0.9.tar.gz
Expand All @@ -164,15 +165,15 @@ $ cd nginx-1.0.9

Now, choose between Lua and LuaJIT :

```
```bash
// nginx needs to know where is Lua :
//$ export LUA_LIB=/path/to/lua/lib
//$ export LUA_INC=/path/to/lua/include
```

OR :

```
```bash
// we say where is LuaJIT if we want to use it instead of Lua, and we want because LuaJIT is faster :
$ export LUAJIT_LIB=/opt/luajit/lib/
$ export LUAJIT_INC=/opt/luajit/include/luajit-2.0
Expand All @@ -182,7 +183,7 @@ I choose LuaJIT !
Configure :
```
```bash
$ ./configure --with-debug \
--prefix=/opt/nginx \
--error-log-path=/var/log/nginx/error.log \
Expand Down

0 comments on commit cee0dfd

Please sign in to comment.