会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
董大轩
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
10
下一页
2023年6月27日
MySQL server has gone away
摘要: # 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 董大轩
阅读(69)
评论(0)
推荐(0)
2023年2月13日
runtime/cgo: pthread_create failed: Operation not permitted
摘要: runtime/cgo: pthread_create failed: Operation not permitted 在容器里边运行命令报错 解决方案(增加 --privileged) docker run --privileged 参考文档 https://stackoverflow.com/q
阅读全文
posted @ 2023-02-13 19:25 董大轩
阅读(7007)
评论(1)
推荐(0)
2022年12月2日
pptpd 配置
摘要: 方便起见,直接开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:34 董大轩
阅读(284)
评论(0)
推荐(0)
Linux 设置代理时, 密码出现特殊字符怎么办?
摘要: Linux 设置代理时, 密码出现特殊字符怎么办? 配置代理的格式一般是这样的: $ export https_proxy=https://用户名:密码@代理地址:代理端口 比如需要配置这些: $ export http_proxy=http://CodeCore:@MingHou233!@172.
阅读全文
posted @ 2022-12-02 10:34 董大轩
阅读(725)
评论(0)
推荐(0)
2022年11月10日
Golang GRPC 添加header
摘要: 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 董大轩
阅读(1183)
评论(0)
推荐(0)
2022年5月31日
Golang Gin框架搭配Grpc框架使用(监听同一端口)
摘要: Golang Gin框架搭配Grpc框架使用(监听同一端口) 方式一、该方式仅限给Gin配置了SSL证书、 http标准库会为配置了证书的http服务自动选用http/2协议,grpc建立在http/2协议上,所以没有配置SSL证书时请勿使用该方式 package main // 入口 func m
阅读全文
posted @ 2022-05-31 17:58 董大轩
阅读(5447)
评论(0)
推荐(0)
2022年4月15日
阿里云redis-shake
摘要: ##一、介绍 redis-shake是阿里云Redis&MongoDB团队开源的用于redis数据同步的工具。下载地址: https://github.com/alibaba/RedisShake/releases?spm=a2c6h.12873639.article-detail.4.4b8974
阅读全文
posted @ 2022-04-15 12:15 董大轩
阅读(708)
评论(0)
推荐(0)
2022年3月4日
Linux的IIO、内存、CPU状态实时监控
摘要: 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 董大轩
阅读(318)
评论(0)
推荐(0)
2022年2月28日
Cannot allocate memory 的分析及解决方法
摘要: Cannot allocate memory 的分析及解决方法 问题 业务方使用Python虚拟的子进程和主进程共享内存,主进程启动后,启动子进程时报错"Cannot allocate memory" 问题分析 可能的原因: 系统的物理RAM或交换空间不足 进程在启用CompressedOops的情
阅读全文
posted @ 2022-02-28 09:56 董大轩
阅读(10006)
评论(1)
推荐(0)
2022年2月24日
Prometheus 使用 blackbox 作为客户端
摘要: 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 董大轩
阅读(811)
评论(0)
推荐(0)
1
2
3
4
5
···
10
下一页
公告