nlv架構目前只支持linux,最好是64位linux,好比fedora19,centOS6.4 linux
安裝系統所需web軟件 nginx
1.下載luajit,官網 http://luajit.org/
wget http://luajit.org/download/LuaJIT-2.0.1.tar.gz
tar xzvf LuaJIT-2.0.1.tar.gz
cd LuaJIT-2.0.1
make PREFIX=/usr/local/web/LuaJIT-2.0.1
make install PREFIX=/usr/local/web/LuaJIT-2.0.1
2.下載最新版tengine,官網 http://tengine.taobao.org/
wget http://tengine.taobao.org/download/tengine-1.5.2.tar.gz
tar xzvf tengine-1.5.2.tar.gz
cd tengine-1.5.2
./configure --with-ld-opt="-Wl,-rpath,/usr/local/web/LuaJIT-2.0.1/lib" --prefix=/usr/local/web/tengine-1.5.2 --with-http_lua_module --with-luajit-inc=/usr/local/web/LuaJIT-2.0.1/include/luajit-2.0 --with-luajit-lib=/usr/local/web/LuaJIT-2.0.1/lib
make -j2
make install -j2 web
cd /usr/local/web架構
ln -s tengine-1.5.2 nginx
luajit和tengine默認都安裝到/usr/local/web/下
編譯安裝tengine時可能會提示如下軟件開發包須要安裝,咱們能夠事先使用yum安裝編譯tengine時必須的軟件
yum install pcre-devel
yum install openssl-devel
yum install readline-devel
由於linux軟件依賴關係複雜,咱們這裏不描述使用非yum方式安裝的狀況。
lua
通常狀況下/usr/local/web/nginx/sbin/nginx文件即爲可運行的nginx了。 spa
第二篇:http://my.oschina.net/summer1433/blog/181436.net