会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
牛奔
每个优秀的人,都有一段沉默的时光,那段时光,是付出了很多努力,却得不到结果的日子,我们把它叫做扎根。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
25
26
27
···
95
下一页
2023年5月23日
k8s Error: failed to prepare subPath for volumeMount "custom-logo" of container "grafana"
摘要: # 前言 使用 `k8s` 挂载卷文件时,使用了 `hostPath`,`type: File` ``` volumeMounts: - mountPath: /usr/share/grafana/public/img/grafana_icon.svg name: custom-logo subPa
阅读全文
posted @ 2023-05-23 12:54 牛奔
阅读(756)
评论(0)
推荐(0)
2023年5月22日
goframe API 自定义接口返回值处理
摘要: # 前言 `goframe` 默认使用了中间键 `ghttp.MiddlewareHandlerResponse`, `HTTP Server` 的数据返回通过 `ghttp.Response` 对象实现,`ghttp.Response` 对象实现了标准库的 `http.ResponseWriter
阅读全文
posted @ 2023-05-22 22:51 牛奔
阅读(1167)
评论(0)
推荐(0)
更新docker配置,重启docker进程,容器不重启
摘要: # 前言 想重启 `dockerd` ,重新加载配置文件,可又怕重启容器,影响线上业务。 # reload 重新加载配置 `dockerd reload` 配置,不会重启 `dockerd` ``` kill -SIGHUP $(pidof dockerd) # 给 dockerd 发送 SIGHU
阅读全文
posted @ 2023-05-22 21:51 牛奔
阅读(3244)
评论(0)
推荐(0)
2023年5月14日
为什么编程语言中,标识符不能以数字开头?
摘要: 标识符不能以数字为开头, 是为了简化词法解析器设计和实现,规避词法解析中以数字开头的变量与数字解析冲突的问题。 如果两种类型的词,如果起始符号不同,那么可以很容易把二者区分开;如果起始符号相同,那么以下符号: 234 到底是变量还是数字常量?这种情况下,需要根据上下文判断。这就离“上下文无关法”越来
阅读全文
posted @ 2023-05-14 11:02 牛奔
阅读(273)
评论(0)
推荐(0)
2023年5月11日
mac zsh终端 goframe gf 别名冲突
摘要: 前言 如果你使用的是 zsh 终端,可能会存在 gf 别名冲突( git fetch 快捷指令) 解决 终端运行 alias gf=gf,gf 工具会自动修改 .zshrc 中的别名设置,source .zshrc 或者重开终端,gf -v 就可以用了。 alias gf=gf source .zs
阅读全文
posted @ 2023-05-11 15:08 牛奔
阅读(363)
评论(0)
推荐(0)
2023年5月10日
ubuntu apt 安装报错:Media change: please insert the disc labeled 'Ubuntu 20.04.5 LTS Focal Fossa - Release amd64 (20220831)' in the drive '/cdrom/' and press [Enter]
摘要: 前言 如果你在 Ubuntu 上使用 apt 安装软件包时遇到 "Media change: please insert the disc labeled ..." 的错误消息,这通常是因为 apt 源列表中包含 CD/DVD 源,但你的系统中没有插入相应的安装介质(CD 或 DVD)。 解决 检查
阅读全文
posted @ 2023-05-10 22:38 牛奔
阅读(901)
评论(0)
推荐(0)
linux npm 全局安装 command not found
摘要: 前言 在 linux 使用 npm 全局安装一个模块时,会提示命令找不到。 例如:npm install @quasar/cli -g 后 $ quasar -v quasar: command not found 原因是 npm 的环境变量没有添加设置,导致无法正常使用该命令。 解决方法 将 np
阅读全文
posted @ 2023-05-10 21:20 牛奔
阅读(2357)
评论(0)
推荐(0)
2023年5月2日
go krotos proto编译引用外部包 was not found or had errors
摘要: # 前言 kratos protos 生成 `pb.go` 文件时,会出现引用其他 proto 文件报错 `was not found or had errors`,因找不到此文件而无法编译。 # 解决 首先我们先了解下 protoc 中 import 的两条规则: 1. import 不允许使用相
阅读全文
posted @ 2023-05-02 23:02 牛奔
阅读(618)
评论(0)
推荐(0)
k8s DCGM GPU采集指标项说明
摘要: dcgm-exporter 采集指标项 https://help.aliyun.com/document_detail/433222.html#section-oin-6mf-6j0 指标 解释 dcgm_fan_speed_percent GPU风扇转速占比(%) dcgm_sm_clock GP
阅读全文
posted @ 2023-05-02 18:11 牛奔
阅读(390)
评论(0)
推荐(0)
2023年4月20日
pytorch报错 No module named 'nn'
摘要: 问题描述 pytorch 报错 No module named 'nn' 如果你 import torch 没问题,而 import torch.nn时出现问题,你可能命名使用了一个名字为 torch.py 文件,由于 torch.py 文件与系统的 torch.py 文件重名,所以会触发该问题,将
阅读全文
posted @ 2023-04-20 10:17 牛奔
阅读(905)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
···
95
下一页
公告