上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 92 下一页
摘要: 在Linux中,你可以使用curl命令来测试URL的访问速度。curl是一个强大的命令行工具,可以用于文件传输和测试网络连接。 以下是使用curl测试URL访问速度的步骤: 打开终端或命令行界面。 输入以下命令: curl -o /dev/null -s -w "time_namelookup: % 阅读全文
posted @ 2024-01-23 17:42 牛奔 阅读(816) 评论(0) 推荐(0)
摘要: 前言 一直使用 npm build没问题的,突然出现报错: npm WARN install Usage of the `--dev` option is deprecated. Use `--only=dev` instead. npm ERR! code CERT_HAS_EXPIRED npm 阅读全文
posted @ 2024-01-22 22:09 牛奔 阅读(2244) 评论(2) 推荐(1)
摘要: 前言 在 Linux 环境中,我使用 sudo 执行命令,发生报错:sudo: unable to resolve host xxxx: Name or service not known 解决 这个错误通常发生在更改主机名后,使用 sudo 命令时出现问题。sudo 命令会尝试解析主机名,但如果无 阅读全文
posted @ 2024-01-22 18:20 牛奔 阅读(1574) 评论(0) 推荐(1)
摘要: 前言 在 mac 上安装 python 后,会自动在 .zprofile 文件中,加入: # Setting PATH for Python 3.12 # The original version is saved in .zprofile.pysave PATH="/Library/Framewo 阅读全文
posted @ 2023-12-24 23:12 牛奔 阅读(421) 评论(0) 推荐(0)
摘要: 制作 ubuntu U盘启动盘 下载Ubuntu镜像 打开 Ubuntu 官网:https://ubuntu.com/download/desktop ,进入页面后,点击右边的【Download】按钮开始下载 Ubuntu 的 ISO 系统镜像文件 下载安装并配置U盘启动盘 下载 Rufuse 写盘 阅读全文
posted @ 2023-12-23 20:14 牛奔 阅读(5329) 评论(0) 推荐(0)
摘要: 介绍 Prometheus 支持 4 种 指标类型,分别是 Counter、Gauge、Histogram 和 Summary。 Counter 指标类型,指标值是只能递增,不能递减的数值。需要注意的是,当 Prometheus server 重启时,指标值会被重置为 0。该指标类型可用于统计接口的 阅读全文
posted @ 2023-11-26 13:04 牛奔 阅读(497) 评论(0) 推荐(0)
摘要: 前言 使用 json.dumps(result) 对数据转 JSON 数据出现错误:TypeError: Object of type float32 is not JSON serializable 数据中存在的 float32 数据是 numpy 格式的数据,Python 内置的 float 类 阅读全文
posted @ 2023-11-13 22:50 牛奔 阅读(828) 评论(0) 推荐(0)
摘要: 前言 在 kubernetes 中配置 https://github.com/NVIDIA/k8s-device-plugin 时, 报错:Detected non-NVML platform: could not load NVML: libnvidia-ml.so.1: cannot open 阅读全文
posted @ 2023-10-18 21:34 牛奔 阅读(484) 评论(0) 推荐(1)
摘要: 前言 在管理 Kubernetes 集群的过程中,我们经常会遇到这样一种情况:在某台节点上发现某个进程资源占用量很高,却又不知道是哪个容器里的进程。有没有办法可以根据进程 PID 快速找到 Pod 名称呢? 解决 假设现在有一个 prometheus 进程的 PID 是 14338: 要获取容器的 阅读全文
posted @ 2023-10-12 22:35 牛奔 阅读(487) 评论(0) 推荐(0)
摘要: 前言 在 ssh -i 指定密钥文件 登录时,出现以下报错: Permissions 0644 for 'xxxx' are too open. It is required that your private key files are NOT accessible by others. This 阅读全文
posted @ 2023-10-09 20:11 牛奔 阅读(1791) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 92 下一页