Loading

摘要: 正在阅读: 《Linux高性能服务器编程》作者:游双 47%... 正在努力阅读中 《Go语言高级编程》作者:柴树杉,曹春晖 78%... 正在努力阅读中 三四章的 cargo、汇编 的讲解是十分适合入门的 针对 Go 的 RPC 标准库的应用 以及 grpc 和 protobuf 的讲解也很 ni 阅读全文
posted @ 2021-08-19 08:56 zhixlin 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 字符串 拼接 _ = fmt.Sprintf(format string, a ...interface{}) 整型与字符的转化 // string-> int num, err := strconv.Atoi("123") if err != nil { return } // int -> st 阅读全文
posted @ 2022-03-15 10:54 zhixlin 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 搭建问题 1.KubeEdge 无法与 Kubernetes 节点建立连接 $ journalctl -u edgecore -xef (1)通过日志判断 kube-proxy 需要关闭 通过 ps aux | grep kube-proxy 查看是否 kube-proxy 运行, kill PID 阅读全文
posted @ 2022-03-10 10:16 zhixlin 阅读(265) 评论(0) 推荐(0) 编辑
摘要: kubectl $ k get deploy ble-mapper -oyaml $ k get configmap device-profile-config-raspberry3b -ojson $ k get deploy -owide $ k apply -f xiaomi-device-d 阅读全文
posted @ 2022-03-08 17:47 zhixlin 阅读(36) 评论(0) 推荐(0) 编辑
摘要: systemd about $ systemctl status clash.service $ systemctl restart xxx $ systemctl start xxx $ systemctl enable xxx // 开机服务自启动 $ journalctl -u edgecor 阅读全文
posted @ 2022-02-24 13:22 zhixlin 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 学习资料 我们经常都会查看日志-log,去查看进程信息,排查错误 Linux 系统都会运行一个常规的日志守护程序,它所有的输出称之为系统日志 journalctl journalctl command 允许我们查看 system log $ journalctl # 打印此时的系统日志,这可以 ba 阅读全文
posted @ 2021-09-05 11:19 zhixlin 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 学习资料 The Missing Semester of Your CS Education Editor 流行的图形编辑器:VS Code、JetBrain 全家桶 另外最流行的命令行编辑器就是 vim 了 强烈建议: IDE + Vim plugin~ vim 是一种 mode editor,这 阅读全文
posted @ 2021-09-04 23:36 zhixlin 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 表现 读写锁在表现上是允许并发读,独占写的。这把锁理解上可以看成一把读锁(共享锁),一把写锁(独占锁) 即调用读写锁时,一读线程持有读锁(RLock()),同时允许其它线程持有读锁,大家一起进行并发读。但是写线程(Lock())持有的写锁是独占锁的,当别人持有读或写锁,它就无法请求获得写锁。 总结: 阅读全文
posted @ 2021-09-03 09:50 zhixlin 阅读(504) 评论(0) 推荐(0) 编辑
摘要: ##镜像 $ docker images # 查看 docker 镜像 $ docker pull xx # 从 dockerhub 拉取镜像 $ docker rmi XX # 删除镜像 $ docker build -t someip:1.0 . # 通过 Dockerfile 构建镜像 $ d 阅读全文
posted @ 2021-09-01 10:19 zhixlin 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 学习资料: The Missing Semester of Your CS Education The Shell OverView $ doller 符号,表示普通用户 # pound 符号,表示 root 用户 还需要知道的一点是输入流与输出流之间的隔离 $ # echo 500 > hello 阅读全文
posted @ 2021-08-28 08:33 zhixlin 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 观前提示,有能力可以直接尝试看源码,更清晰~ 环境: Darwin Kernel, arm64 go version go1.16.3 darwin/arm64 正文 同步原语 mutex 也是在 Go 并发控制中耳熟能详的存在了。小小的 mutex 让我产生了大大的疑惑。让我们进入源码一探究竟~ 阅读全文
posted @ 2021-08-21 23:09 zhixlin 阅读(326) 评论(0) 推荐(0) 编辑