会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
醒日是归时
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
19
下一页
2022年7月1日
lua中table中null的表示方法以及判断redis返回null
摘要: 今天遇到一个麻烦的问题,查询redis时候,查到数据的时候正常返回,查询不到数据时,返回了null,然而在lua中,常见的nil,但不常见null,这时候lua中对redis返回的null如何做判断呢?于是各种尝试。这是经过公司基础库封装的结果,并非官方的返回,redis返回结果如下: {"retm
阅读全文
posted @ 2022-07-01 01:05 醒日是归时
阅读(1067)
评论(0)
推荐(0)
2022年6月30日
lua获取请求参数以及在nginx.conf中使用
摘要: -- 获取请求路径 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 醒日是归时
阅读(1992)
评论(0)
推荐(0)
Lua 按指定字符切割字符串的方法gsub
摘要: 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 醒日是归时
阅读(1137)
评论(0)
推荐(0)
2022年5月27日
APISIX配置
摘要: 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 醒日是归时
阅读(3332)
评论(0)
推荐(0)
2022年5月20日
MySQL在线DDL工具 gh-ost
摘要: 一.简介 gh-ost基于 golang 语言,是 github 开源的一个 DDL 工具,是 GitHub's Online Schema Transmogrifier/Transfigurator/Transformer/Thingy 的缩写,意思是 GitHub 的在线表定义转换器。 1.1
阅读全文
posted @ 2022-05-20 11:04 醒日是归时
阅读(851)
评论(0)
推荐(0)
2022年5月19日
gh-ost工具在线改表过程的详细解析
摘要: gh-ost,是github开源的一款在线修改MySQL表结构的工具https://github.com/github/gh-ost/,它不使用pt-osc的触发器机制,而是使用解析binlog来实现将增量数据复制到新表。 最近我抽空了解了一下它的源码,结合debug日志,整理出它的过程,如下: 1
阅读全文
posted @ 2022-05-19 17:42 醒日是归时
阅读(395)
评论(0)
推荐(0)
gh-ost测试
摘要: 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 醒日是归时
阅读(106)
评论(0)
推荐(0)
2022年5月9日
linux 查看进程的bin文件所在路径
摘要: 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 醒日是归时
阅读(875)
评论(0)
推荐(0)
2022年4月11日
flask+gunicorn+supervisor部署项目
摘要: # 一、安装模块 ```bash pip install gunicorn gevent # 如果使用python supervisor,需要安装模块 pip install supervisor # 建议使用yum安装 yum install supervisor -y systemctl sta
阅读全文
posted @ 2022-04-11 10:35 醒日是归时
阅读(152)
评论(0)
推荐(0)
2022年3月30日
Golang verifying module: xxx: initializing sumdb.Client: reading tree note: malformed note
摘要: 问题描述 在使用 go mod 拉取github上的一些包时碰到了一个非常令人头疼的问题,想使用一个包却拉不下来报了以下错误: go: finding module for package github.com/gin-gonic/gin go: downloading github.com/gin
阅读全文
posted @ 2022-03-30 15:47 醒日是归时
阅读(790)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
19
下一页
公告