https://github.com/LomoX-Offical/nginx-openresty-windows 我用的是这个的最新版,现在这个问题已经解决了,用windows版的lua目录下的lua5.1.dll,lua51.dll覆盖nginx目录中的lua5.1.dll,lua51.dll就可以了,
但现在还有个问题,require("winapi") 会出现句柄泄漏,我把lua_code_cache设成off,然后每次由nginx调lua脚本都会泄漏一个句柄,
脚本中的内容:
require("winapi")
ngx.say("hello world")
在 2016年7月26日星期二 UTC+8下午7:12:41,YuanSheng写道:
2016-07-26 12:25 GMT+08:00 atodisa
<trip...@gmail.com>:
你用的 windows 哪个版本?我知道春哥官方除了一个,还有一个是奇虎360开源的 windows 版本也有一个。
提供一些详细信息,来源、版本、示例配置用法。
2016/07/26 11:33:41 [notice] 7944#11324: using inherited sockets from "428;"
2016/07/26 11:33:41 [alert] 7944#11324: lua_code_cache is off; this will hurt performance in C:\nginx/conf/nginx.conf:14
2016/07/26 11:33:43 [notice] 6448#12200: using inherited sockets from "428;"
2016/07/26 11:33:43 [alert] 6448#12200: lua_code_cache is off; this will hurt performance in C:\nginx/conf/nginx.conf:14
如果不是通过nginx调用lua脚本的话,是可以运行的,求教啊
--
--
YuanSheng Wang
---------------------------------------
OpenResty lover ^_^