谷中仁的博客
所有文章观点仅代表本站观点,与他人无关。
Benchmark 🧪 基准测试是对计算机系统的性能的测试。 在程序中,基准测试,是一种测试代码性能的方法;比如有一个问题你有多种不同的方案,你想选择一种性能最好
简介 目标 目的 Coding 目录结构 封装 error 函数 安装 SQLLite 库及其他库 申明 DB 全局变量 初始化数据库 用户模型构建及原子操作 用户模型 新增 删除 修改 查询 在应用中启动并调用用
这是一篇用于预览 Markdown 基本语法的文章。
文章内容基于 GitHub Flavored Markdown Spec。
不包含复杂的规则说明,仅仅展示 GFM 所约定的 Markdown 基本语法。
环境 hostname ip system master 192.168.33.10 CentOS7 node1 192.168.33.11 CentOS7 node2 192.168.33.12 CentOS7 node3 192.168.33.13 CentOS7 node4 192.168.33.14 CentOS7 node5 192.168.33.15 CentOS7 所有节点上操作 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
场景 在搭建私有云环境时,我们需要将我们打包的镜像存储在局域网内,而不是把镜像推送到 hub.docker.com;一方面是因为安全问题,另一方
1 2 3 4 5 go: golang.org/x/sys@v0.0.0-20180905080454-ebe1bf3edb33: unrecognized import path "golang.orgnrecognized import path "golang.org/x/sys" (https fetch: G1: dial tcp 216.239.37.1:443: conneet https://golang.org/x/sys?go-get=1: dial tcp 216.239.37.rty did not properly respond after1:443: connectex: A connection attempt failed because the connected host has failed to respoconnected party did not properly respond after a period of time, or established connection failed because connected : unrecognized import path "golang.host has failed to respond.) ... go:
1 2 3 4 5 go: golang.org/x/sys@v0.0.0-20180905080454-ebe1bf3edb33: unrecognized import path "golang.orgnrecognized import path "golang.org/x/sys" (https fetch: G1: dial tcp 216.239.37.1:443: conneet https://golang.org/x/sys?go-get=1: dial tcp 216.239.37.rty did not properly respond after1:443: connectex: A connection attempt failed because the connected host has failed to respoconnected party did not properly respond after a period of time, or established connection failed because connected : unrecognized import path "golang.host has failed to respond.) ... go:
引言 我们大多数情况下用到的包都是存放在 npmjs.com 这个网站上的,只要我们安装了 Node,我们就可以使用 Node 自带的 npm 包来下载你需要的包;但有时候我们想让我