Hello!
On Tue, Mar 19, 2013 at 4:42 AM, alain meunier wrote:
> I am not sure how to use the luajit2.0 module with nginx.
>
> I read
http://wiki.nginx.org/HttpLuaModule#Lua.2FLuaJIT_bytecode_support
>
> But i don't fully understand : how may I be sure to use luajit ?
> My version came from the last official debian packaged one, which contains
> your lua module.
>
If the Debian package uses the standard Lua 5.1 interpreter already
(I'm not sure), then you're recommended to recompile nginx and ngx_lua
from source. The easiest way is to use the ngx_openresty bundle, as
Brian suggested:
http://openresty.org/#Download
Just build it like this on Linux:
./configure --with-luajit -j4
make -j4
make install
/usr/local/openresty/nginx/sbin/nginx -V
where we assume that you have 4 CPU cores available.
When you have troubles, just refer to the installation documentation
of openresty:
http://openresty.org/#Installation
Best regards,
-agentzh