yum install -y yum install -y pcre* gcc  autoconf automake  make  zlib  zlib-devel  openssl openssl-devel pcre pcre-devel wget
cd /usr/local/src
#wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz
wget http://192.168.10.210/LuaJIT-2.0.2.tar.gz
tar -xvf  LuaJIT-2.0.2.tar.gz
cd LuaJIT-2.0.2
make && make install
cd ..
#wget http://nginx.org/download/nginx-1.2.4.tar.gz
wget http://192.168.10.210/nginx-1.2.4.tar.gz
#wget https://github.com/simpl/ngx_devel_kit/archive/v0.2.18.tar.gz
wget http://192.168.10.210/ngx_devel_kit-0.2.18.tar.gz
#wget https://github.com/chaoslawful/lua-nginx-module/archive/v0.8.3rc1.tar.gz
wget http://192.168.10.210/lua-nginx-module-0.8.3rc1.tar.gz
echo "export LUAJIT_LIB=/usr/local/lib" >>  /etc/profile
echo "export LUAJIT_INC=/usr/local/include/luajit-2.0" >> /etc/profile
source /etc/profile
./configure --prefix=/usr/local/nginx --add-module=/usr/local/src/ngx_devel_kit-0.2.18 --add-module=/usr/local/src/lua-nginx-module-0.8.3rc1
make -j2
make install
ln -s   /usr/local/lib/libluajit-5.1.so.2  /lib64/libluajit-5.1.so.2