摘要:lua 发送消息到 rabbitmq, 我们选择类库lua-resty-rabbitmqstomp 来完成这个任务。 类库安装: 进入 nginx.conf 中 lua_package_path 中对应的目录下的resty 目录(没有则创建) , 执行: wget -c https://raw.gi
阅读全文
posted @ 2022-02-17 20:46
|
||
02 2022 档案
摘要:lua 发送消息到 rabbitmq, 我们选择类库lua-resty-rabbitmqstomp 来完成这个任务。 类库安装: 进入 nginx.conf 中 lua_package_path 中对应的目录下的resty 目录(没有则创建) , 执行: wget -c https://raw.gi
阅读全文
posted @ 2022-02-17 20:46
摘要:lua 发送消息到 kakfka 的类库挺多的,还都比较靠谱,但是 lua 连接 Rabbitmq 的几个类库好像都不太好用, 有用stomp 协议的, 还有 用AMQP 协议的,由于我的服务器上已经安装了 rabbitmq-c , 它基本上就是一组实现了 AMQP 协议的 C 类库, lua 能通
阅读全文
posted @ 2022-02-17 20:45
摘要:Nginx顺序 Nginx 处理每一个用户请求时,都是按照若干个不同阶段(phase)依次处理的,而不是根据配置文件上的顺序。 Nginx 处理请求的过程一共划分为 11 个阶段,按照执行顺序依次是 post-read、server-rewrite、find-config、rewrite、post-
阅读全文
posted @ 2022-02-17 19:28
摘要:request对象的属性和方法 --属性 method = ngx.var.request_method -- http://wiki.nginx.org/HttpCoreModule#.24request_method schema = ngx.var.schema -- http://wiki.
阅读全文
posted @ 2022-02-17 19:23
|
||