跳过正文

tech

Go序列化与反序列化thrift数据
·319 字
tech Go Thrift
thrift IDL文件定义 # foo.thrift namespace go foo struct Bar { 1: optional string name; } 生成go文件 thrift -gen go
Docker开发环境搭建
·323 字
tech Docker Hugo
由于工作中 go 开发环境是 1.17,但 hugo 博客需要 go1.20 以上版本,所以
ubuntu22.04安装
·3016 字
tech Linux Ubuntu Gnome
为什么安装 ubuntu22.04 # 工作用笔记本一开始安装的是 windows,使用
ubuntu ibus rime配置
·647 字
tech Ubuntu ibus rime Linux
安装rime输入法 # 安装比较简单,执行下面命令即可 sudo apt install ibus-rime 这
pprof分析
·606 字
tech Go
服务增加 pprof 监控 # package main import( "net/http" _ "net/http/pprof" ) func main() { go func() { log.Println(http.ListenAndServe("localhost:6060", nil)) }() // do something } pprof 包
Redis内存淘汰策略
·138 字
tech Redis
redis 内存淘汰策略 # 策略 描述 noeviction 新写入操作会报错 allkeys-lru 在所有键值对数据
MySQL事务
·1439 字
tech MySQL
事务的特性(ACID) # 特性 描述 原子性(atomicity)
Rsync
·77 字
tech Linux
rsync code 23 # 报错: rsync files to /home/path/xxx failed, ['could not make way for new regular file: xxx/.git', 'rsync error: some files/attrs were not transferred (see previous
获取图片信息
·360 字
tech Go
获取远程图片信息 # image库针对远程图片使用image.D
WSL网络连接问题
·300 字
tech Windows Ubuntu WSL
问题 # 环境:wsl1 子系统:ubuntu20.04 windo