Você precisa instalar duas bibliotecas "lua-resty-core" e "lua-resty-lrucache" em OpenResty . Então inicie em nginx, como:
http {
lua_package_path "/usr/local/lib/lua/?.lua;;";
init_by_lua_block {
require "resty.core"
collectgarbage("collect") -- just to collect any garbage
}
}
Ou use plataforma web do OpenResty de forma simples.