摘要: # MySQL server has gone away > 这个是一个工单的开源项目:https://loonflow.readthedocs.io/zh_CN/r2.0.18/ ## 加了一些功能之后,本地测试没问题,线上报错"MySQL server has gone away" ##解决方案 阅读全文
posted @ 2023-06-27 12:59 董大轩 阅读(22) 评论(0) 推荐(0) 编辑
摘要: runtime/cgo: pthread_create failed: Operation not permitted 在容器里边运行命令报错 解决方案(增加 --privileged) docker run --privileged 参考文档 https://stackoverflow.com/q 阅读全文
posted @ 2023-02-13 19:25 董大轩 阅读(3623) 评论(1) 推荐(0) 编辑
摘要: 方便起见,直接开root权限操作就好了。 1 #安装pptp sudo apt-get install pptpd 2 vi /etc/pptpd.conf #取消下面两行的注释: localip 192.168.0.1 remoteip 192.168.0.234-238,192.168.0.24 阅读全文
posted @ 2022-12-02 16:35 董大轩 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Linux 设置代理时, 密码出现特殊字符怎么办? 配置代理的格式一般是这样的: $ export https_proxy=https://用户名:密码@代理地址:代理端口 比如需要配置这些: $ export http_proxy=http://CodeCore:@MingHou233!@172. 阅读全文
posted @ 2022-12-02 10:34 董大轩 阅读(366) 评论(0) 推荐(0) 编辑
摘要: Golang GRPC 添加header 创建grpc连接时添加header 使用自建的metadata 添加的headr信息: key: my-header value: "test01" func main() { conn, err := grpc.Dial("localhost:12000" 阅读全文
posted @ 2022-11-10 14:03 董大轩 阅读(710) 评论(0) 推荐(0) 编辑
摘要: Golang Gin框架搭配Grpc框架使用(监听同一端口) 方式一、该方式仅限给Gin配置了SSL证书、 http标准库会为配置了证书的http服务自动选用http/2协议,grpc建立在http/2协议上,所以没有配置SSL证书时请勿使用该方式 package main // 入口 func m 阅读全文
posted @ 2022-05-31 17:58 董大轩 阅读(3982) 评论(0) 推荐(0) 编辑
摘要: ##一、介绍 redis-shake是阿里云Redis&MongoDB团队开源的用于redis数据同步的工具。下载地址: https://github.com/alibaba/RedisShake/releases?spm=a2c6h.12873639.article-detail.4.4b8974 阅读全文
posted @ 2022-04-15 12:15 董大轩 阅读(470) 评论(0) 推荐(0) 编辑
摘要: pidstat命令监控一分钟所有的状态,排查问题足够用. 使用ps命令监控当时的状态. 脚本如下 #!/bin/bash export MONTH=$(date +%m) export DAY=$(date +%d) export HOUR=$(date +%H) export MIN=$(date 阅读全文
posted @ 2022-03-04 10:07 董大轩 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Cannot allocate memory 的分析及解决方法 问题 业务方使用Python虚拟的子进程和主进程共享内存,主进程启动后,启动子进程时报错"Cannot allocate memory" 问题分析 可能的原因: 系统的物理RAM或交换空间不足 进程在启用CompressedOops的情 阅读全文
posted @ 2022-02-28 09:56 董大轩 阅读(8009) 评论(1) 推荐(0) 编辑
摘要: Prometheus 使用 blackbox 作为客户端请求TCP、HTTP、GRPC 安装 github: https://github.com/prometheus/blackbox_exporter.git 默认配置文件 modules: http_2xx: prober: http http 阅读全文
posted @ 2022-02-24 14:27 董大轩 阅读(661) 评论(0) 推荐(0) 编辑