摘要: 一、闭包的通俗定义:带 “背包” 的函数 先给一个最容易理解的比喻: 普通函数就像一个空着手出门的人,只能用自己手里的东西(参数、内部变量); 闭包就像一个带着背包出门的人,背包里装着它从 “家里”(外层函数)带出来的东西(外层变量),不管走到哪里(被传到哪里调用),都能拿出背包里的东西用,还能修改 阅读全文
posted @ 2026-02-07 15:22 rincloud 阅读(0) 评论(0) 推荐(0)
摘要: root 3525 1.6 3.0 4557956 120436 pts/1 Sl 22:45 0:01 /usr/local/bin/containerd-shim-nerdbox-v1 -namespace default -id test -address /run/containerd/co 阅读全文
posted @ 2025-11-18 22:47 rincloud 阅读(7) 评论(0) 推荐(0)
摘要: 进程树 root 6128 1.0 1.9 2130200 78852 ? Ssl 22:48 0:03 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --selinux-enabled --userla 阅读全文
posted @ 2025-09-04 22:56 rincloud 阅读(13) 评论(0) 推荐(0)
摘要: 🔧 ‌一、部署基础文件服务器‌ 1. ‌创建本地目录‌ 用于存放配置和文件: bashCopy Code mkdir -p /opt/nginx/conf /opt/nginx/html /opt/nginx/logs ▿ 目录作用: /opt/nginx/conf:存放 Nginx 配置文件 / 阅读全文
posted @ 2025-07-30 14:32 rincloud 阅读(170) 评论(0) 推荐(0)
摘要: docker pull nginx@sha256:0d17b565c37bcbd895e9d92315a05c1c3c9a29f762b011a10c54a66cd53c9b31 /var/lib/docker/image/overlay2/layerdb/sha256 所有chainID目录(解压 阅读全文
posted @ 2025-06-04 17:46 rincloud 阅读(29) 评论(0) 推荐(0)
摘要: cat /etc/containerd/config.toml 增加 address = "/run/containerd/debug.sock" disabled_plugins = [] imports = [] oom_score = 0 plugin_dir = "" required_pl 阅读全文
posted @ 2025-05-13 09:34 rincloud 阅读(46) 评论(0) 推荐(0)
摘要: 来源:https://openanolis.cn/sig/Cloud-Kernel/doc/721476230897467475 1.1 准备Anolis OS环境 如果您正在使用Anolis OS,请忽视这个步骤。 如果您没有使用Anolis OS,我们强烈建议在Anolis OS环境下进行操作, 阅读全文
posted @ 2025-04-24 20:15 rincloud 阅读(188) 评论(0) 推荐(0)
摘要: func handleSignals(signals chan os.Signal) { go func() { for { select { case s := <-signals: fmt.Printf("received signal %v ", s) switch s { case sysc 阅读全文
posted @ 2025-04-22 19:07 rincloud 阅读(17) 评论(0) 推荐(0)
摘要: package main import ( "errors" "fmt" "github.com/containerd/containerd/errdefs" ) func main() { err := fmt.Errorf("snapshotter was not found: %w", err 阅读全文
posted @ 2025-04-03 21:07 rincloud 阅读(46) 评论(0) 推荐(0)
摘要: https://tag-runtime.cncf.io/wgs/spos/charter/# 以下是容器操作系统领域中流行的开源项目列表: Bottlerocket 瓶火箭 Flatcar Flatcar的 Talos Kairos openSUSE MicroOS Google’s Contain 阅读全文
posted @ 2025-03-22 14:25 rincloud 阅读(10) 评论(0) 推荐(0)