上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页
摘要: -- 获取请求路径 local request_uri = ngx.var.request_uri -- 从 header中取值 local token = ngx.req.get_headers()["token"] -- 获取cookie中的值 local user_id = ngx.var.c 阅读全文
posted @ 2022-06-30 22:33 醒日是归时 阅读(1962) 评论(0) 推荐(0)
摘要: 1. 利用string库的gsub函数 function split( str,reps ) local resultStrList = {} string.gsub(str,'[^'..reps..']+',function ( w ) table.insert(resultStrList,w) 阅读全文
posted @ 2022-06-30 18:32 醒日是归时 阅读(1126) 评论(0) 推荐(0)
摘要: APISIX yum install -y apisix-2.12.1-0.el7.x86_64.rpm yum install -y cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm yum install -y openresty-pcre-8.44-1.el7 阅读全文
posted @ 2022-05-27 01:07 醒日是归时 阅读(3310) 评论(0) 推荐(0)
摘要: 一.简介 gh-ost基于 golang 语言,是 github 开源的一个 DDL 工具,是 GitHub's Online Schema Transmogrifier/Transfigurator/Transformer/Thingy 的缩写,意思是 GitHub 的在线表定义转换器。 1.1 阅读全文
posted @ 2022-05-20 11:04 醒日是归时 阅读(829) 评论(0) 推荐(0)
摘要: gh-ost,是github开源的一款在线修改MySQL表结构的工具https://github.com/github/gh-ost/,它不使用pt-osc的触发器机制,而是使用解析binlog来实现将增量数据复制到新表。 最近我抽空了解了一下它的源码,结合debug日志,整理出它的过程,如下: 1 阅读全文
posted @ 2022-05-19 17:42 醒日是归时 阅读(373) 评论(0) 推荐(0)
摘要: 1、不支持没有主键或者唯一索引的表 2018-08-24 09:53:33 FATAL No PRIMARY nor UNIQUE key found in table! Bailing out 2、不支持有外键约束的表(主表和子表都不支持) 2018-08-24 10:03:09 ERROR Fo 阅读全文
posted @ 2022-05-19 02:46 醒日是归时 阅读(99) 评论(0) 推荐(0)
摘要: 1、获取进程pid ps aux |grep nginx|grep master|grep -v grep|awk '{print $2}' 2、根据进程pid 获取 bin路径 方法a pwdx pid ,该方法对没有修改进程运行路径的 有效 [root@hmy logs]# pwdx 10901 阅读全文
posted @ 2022-05-09 17:10 醒日是归时 阅读(859) 评论(0) 推荐(0)
摘要: # 一、安装模块 ```bash pip install gunicorn gevent # 如果使用python supervisor,需要安装模块 pip install supervisor # 建议使用yum安装 yum install supervisor -y systemctl sta 阅读全文
posted @ 2022-04-11 10:35 醒日是归时 阅读(145) 评论(0) 推荐(0)
摘要: 问题描述 在使用 go mod 拉取github上的一些包时碰到了一个非常令人头疼的问题,想使用一个包却拉不下来报了以下错误: go: finding module for package github.com/gin-gonic/gin go: downloading github.com/gin 阅读全文
posted @ 2022-03-30 15:47 醒日是归时 阅读(768) 评论(0) 推荐(0)
摘要: 1 客户端通信方式 etcdv3的客户端使用gRPC与server进行通信,通信的消息协议使用protobuf进行约定,代替了v2版本的HTTP-json格式,使用二进制替代文本,更加节省空间。 同时gRPC使用的是HTTP/2协议,同一个连接可以同时处理多个请求,不必像HTTP1.1协议中,多个请 阅读全文
posted @ 2022-03-15 16:54 醒日是归时 阅读(699) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页