Lua-在NGINX上编写,在控制台上进行调试。

我正在学习Lua用于NGINX。我想知道是否可能像这样做,而不是一直重启NGINX。

if package.loaded[ngx] then
 ngx.say
else
 print
end

这是否可能?

点赞