安裝luajit2.0.2
wget http://luajit.org/download/LuaJIT-2.0.0-beta9.tar.gz
tar zxvf LuaJIT-2.0.0-beta9.tar.gz
tarxvf LuaJIT-2.0.0-beta9.tar.gz.0-beta9
make
sudo make install PREFIX=/usr/local/luajit
安裝ngx-devel-kit, lua-nginx-module, echo-nginx-module git 克隆https://github.com/simpl/
ngx_devel_kitgit 克隆https://github.com/agentzh/echo-nginx-modulegit 克隆https://github.com/chaoslawful/lua-
LIB" --add-module=/usr/local/ngx
devel_kit --add-module=/usr/local/echo-nginx-module --add-module= /usr/local/lua-nginx-模組 make -j2 make install驗證/usr/local/nginx -V
安裝redis-luagitp. src/redis.lua /usr/local/share/lua/5.1/redis.lua安裝lua-socket2.0.2wget http://luaforge.net/frs/download.php/2664/luasocket-2.00。 2.tar.gztar zxvf luasocket-2.0.2.tar.gzcd luasocket-2.0.2vim configLUAINC=-I/usr/local/luajit/lib LUAINC=-I/usr/local/luajit/include/luajit-2.0
以上就介紹了nginx+lua+redis的安裝,包含了方面的內容,希望對PHP教學有興趣的朋友有幫助。