Something like this should help:
nginx.conf:
events {}
http {
server {
listen 80;
location / {
content_by_lua '
if type(jit) == "table" then
ngx.say(string.format("%s (%s)", jit.version, _VERSION))
else
ngx.say(string.format("%s (no JIT)", _VERSION))
end';
}
}
}
curl:
# curl http://localhost/
Lua 5.1 (no JIT)
On 30 Apr 2015, at 07:04, Sam Wong <hwo...@gmail.com> wrote:
> How do i know the lua inside nginx is being ran as luajit?
>
>
> Hwo.