openresty环境简单配置
下载openresty程序包:
http://openresty.org/cn/download.html
https://mirrors.huaweicloud.com/openresty
修改conf/nginx.conf端口
运行nginx.exe
修改nginx.conf 增加
location /lua { default_type 'text/plain'; content_by_lua_block { ngx.say("Hello,world!") } } location /luadir { default_type 'text/plain'; content_by_lua_file 'lua/hello.lua'; }
hello.lua 中也只放一个lua打印
nginx.exe -s reload后,就可以看到
然后我们就可以在nginx上愉快的使用lua脚本了.
参考:
https://blog.csdn.net/yufei6808/article/details/80682878
---------------------------------------------------------
luacom excel操作
参考:
https://github.com/davidm/luacom
http://code.google.com/archive/p/luaforwindows/downloads
https://blog.csdn.net/liuyukuan/article/details/5471625
https://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6022
lua异常处理
参考:
https://blog.csdn.net/ZZ7ZZ7ZZ/article/details/38848383
https://blog.csdn.net/yuanfengyun/article/details/53454488
https://www.cnblogs.com/-colin/p/8306547.html
https://www.cnblogs.com/Richard-Core/p/4359953.html
lua sleep
参考:
https://stackoverflow.com/questions/17987618/how-to-add-a-sleep-or-wait-to-my-lua-script
lua 文件编码
参考:
- 点赞
- 收藏
- 关注作者
评论(0)