I installed http-lua-module
with nginx, made a script that works perfectly fine, but now I want to be sure that nginx
uses LuaJit
instead of Lua
(because my research shows that LuaJit is faster).
I added to the .bushrc
those lines of code :
export LD_LIBRARY_PATH=/usr/local/luajit/lib:$LD_LIBRARY_PATH
export LUAJIT_LIB=/usr/local/luajit/lib
export LUAJIT_INC=/usr/local/luajit/include/luajit-2.0
I also recompiled nginx and now I just want to be sure that it uses LuaJit.
if jit then print'LuaJIT' end
– Scrublandif jit then .. end
statement to check if you run under LuaJIT. – Scrubland