![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
lua
ckx0709
坚持,麻木的坚持。
展开
-
OpenResty lor框架安装
在github上借鉴一个openresty框架的web框架,借鉴下来学习一下,其他配置也都OK了,但是一直访问不通,看了错误日志: [C]: in function 'require' /home/ckx/lua-lor-example/lor-example/./app/main.lua:1: in function </home/ckx/lua-lor-example/lor-e...原创 2019-07-10 11:42:38 · 354 阅读 · 0 评论 -
openresty luajit 安装
以root身份进入openresty解压包下的/bundel/luaJIT-x.x目录:执行安装:make clean && make && make install安装成功:直接检查安装:luajit-v...原创 2019-07-10 15:15:51 · 496 阅读 · 0 评论 -
lua: attempt to index local 'XXXX' (a boolean value)
引用本地方法布尔值,学习一个新的语言,有时候很小的一个语法错误就能把人折磨死,把错误贴出来百度又发现不曾有人记录过,痛苦至极,翻译出来有稀里糊涂不明就里,记录下来!为后来者掌一盏灯!!!原因在与lua模块语法缺少了return关键字!!!定义一个模块:--定义模块local calc_method = {}--为模块声明一个say的方法function calc_method...原创 2019-07-05 17:12:21 · 11115 阅读 · 4 评论 -
module 'resty.http' not found
没有引入第三方模块resty:解决:1、下载第三方模块依赖:https://github.com/ledgetech/lua-resty-http2、将lua-resty-http/lib/resty下的两个文件http.lua和http_headers.lua拷贝到/usr/local/openresty/lualib/resty目录下(目标路径根据 个人安装的o...原创 2019-07-11 14:05:12 · 4684 阅读 · 0 评论