上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页
摘要: 升级node和npm之后,npm run dev 启动一个Vue项目,报错如下: npm : 无法加载文件 D:\Program Files\nodejs\npm.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID= 阅读全文
posted @ 2022-07-28 12:22 醒日是归时 阅读(1957) 评论(0) 推荐(1) 编辑
摘要: 报错: Auto configuration failed 139868431284128:error:0E079065:configuration file routines:DEF_LOAD_BIO:missing equal sign:conf_def.c:362:line 39 openss 阅读全文
posted @ 2022-07-22 00:48 醒日是归时 阅读(904) 评论(0) 推荐(0) 编辑
摘要: yml文件的更新后工具类: import os import yaml class YamlUtils(): def __init__(self,folder_name='config'): self.foler_name = folder_name def get_yaml_load(self, 阅读全文
posted @ 2022-07-07 16:44 醒日是归时 阅读(754) 评论(0) 推荐(0) 编辑
摘要: 今天遇到一个麻烦的问题,查询redis时候,查到数据的时候正常返回,查询不到数据时,返回了null,然而在lua中,常见的nil,但不常见null,这时候lua中对redis返回的null如何做判断呢?于是各种尝试。这是经过公司基础库封装的结果,并非官方的返回,redis返回结果如下: {"retm 阅读全文
posted @ 2022-07-01 01:05 醒日是归时 阅读(899) 评论(0) 推荐(0) 编辑
摘要: -- 获取请求路径 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 醒日是归时 阅读(1478) 评论(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 醒日是归时 阅读(964) 评论(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 醒日是归时 阅读(3030) 评论(0) 推荐(0) 编辑
摘要: 一.简介 gh-ost基于 golang 语言,是 github 开源的一个 DDL 工具,是 GitHub's Online Schema Transmogrifier/Transfigurator/Transformer/Thingy 的缩写,意思是 GitHub 的在线表定义转换器。 1.1 阅读全文
posted @ 2022-05-20 11:04 醒日是归时 阅读(755) 评论(0) 推荐(0) 编辑
摘要: gh-ost,是github开源的一款在线修改MySQL表结构的工具https://github.com/github/gh-ost/,它不使用pt-osc的触发器机制,而是使用解析binlog来实现将增量数据复制到新表。 最近我抽空了解了一下它的源码,结合debug日志,整理出它的过程,如下: 1 阅读全文
posted @ 2022-05-19 17:42 醒日是归时 阅读(272) 评论(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 醒日是归时 阅读(81) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页