2021年3月7日

aapplication.lua

摘要: -- ngx.header_content_type='text/plain' --ngx.say(123) local ngx_re_split=require("ngx.re").split local ip_addr = ngx.shared.redis_cluster_addr:get('r 阅读全文

posted @ 2021-03-07 15:42 木林coder 阅读(83) 评论(0) 推荐(0) 编辑

init.lua

摘要: local delay = 5 local handler handler = function (premature) --ngx.log(ngx.ERR," timer-do") local resty_consul = require('resty.consul') local consul 阅读全文

posted @ 2021-03-07 15:41 木林coder 阅读(547) 评论(0) 推荐(0) 编辑

lock.lua

摘要: local rety_lock = require "resty.lock" local cache = ngx.shared.my_cache local key = ngx.re.match(ngx.var.request_uri,"/([0-9]+).html") if type(key) = 阅读全文

posted @ 2021-03-07 15:40 木林coder 阅读(184) 评论(0) 推荐(0) 编辑

2021年3月6日

redis 开启 cluster

摘要: https://blog.csdn.net/weixin_44045802/article/details/108535569 阅读全文

posted @ 2021-03-06 12:44 木林coder 阅读(36) 评论(0) 推荐(0) 编辑

2021年3月4日

lua-resty-consul

摘要: yum install perl-Digest-MD5 -y opm search consul opm --install-dir=/usr/local/openresty/lualib/project/common get hamishforbes/lua-resty-consul /usr/d 阅读全文

posted @ 2021-03-04 17:32 木林coder 阅读(168) 评论(0) 推荐(0) 编辑

lua在nginx中的使用范围

摘要: https://blog.csdn.net/ygm_linux/article/details/53534933 阅读全文

posted @ 2021-03-04 17:19 木林coder 阅读(207) 评论(0) 推荐(0) 编辑

2021年3月3日

resty-redis-cluster下载地址

摘要: https://github.com/steve0511/resty-redis-cluster 阅读全文

posted @ 2021-03-03 11:24 木林coder 阅读(155) 评论(0) 推荐(0) 编辑

安装&&配置consul动态负载均衡

摘要: https://www.cnblogs.com/summerday152/p/14013439.html consul的nginx配置 upstream swoole_test { upsync 127.0.0.1:8500/v1/kv/upstreams/swoole_test upsync_ti 阅读全文

posted @ 2021-03-03 09:10 木林coder 阅读(104) 评论(0) 推荐(0) 编辑

2021年2月28日

Unable to establish SSl connection

摘要: https://blog.csdn.net/ora_db/article/details/103902058 阅读全文

posted @ 2021-02-28 20:55 木林coder 阅读(278) 评论(0) 推荐(0) 编辑

openresty 安装

摘要: wget https://github.com/openresty/openresty/releases/download/v1.15.8.2/openresty-1.15.8.2.tar.gz ./configure --prefix=/usr/local/openresty 阅读全文

posted @ 2021-02-28 09:28 木林coder 阅读(59) 评论(0) 推荐(0) 编辑

导航