上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: time.Duration 类型代表两个时间点之间经过的纳秒数,可表示的最长时间段约为290年。 func (t Time) In(loc *Location) Time {} // 时间在指定时区的表示 func (t Time) Format(layout string) string {} / 阅读全文
posted @ 2021-02-08 16:57 Black_Climber 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Exited (0) 1 second ago Exited (0) 1 second ago 容器状态一直为0 docker logs 容器id 未见任何错误 原因: 容器创建未报错,但容器启动不了(挂载的文件和文件夹都存在) 解决:将redis.conf配置文件中daemonize yes的ye 阅读全文
posted @ 2021-02-05 14:56 Black_Climber 阅读(664) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "math/rand" "sync" "time" ) const concurrency = 20 func main() { rateChannel := make(chan int, concurrency) // 别忘记 关闭管道 de 阅读全文
posted @ 2021-02-03 17:49 Black_Climber 阅读(291) 评论(0) 推荐(0) 编辑
摘要: etcdctl_api=3 // 设置版本etcd_api=3 etcdctl --prefix=true "" //获取 etcd keyetcd_api=3 etcdctl --endpoints="127.0.0.1:2379" endpoint health // 查看集群健康状态etcd_ 阅读全文
posted @ 2021-01-29 16:00 Black_Climber 阅读(1754) 评论(0) 推荐(0) 编辑
摘要: 首先,先说几条命令 redis-cli -p 7001 -c // 进入集群 cluster nodes // 查看集群中各个节点的信息 cluster info // 查看集群的信息// 更多集群 节点 槽 的操作 http://www.voidcn.com/article/p-uzncrgkr- 阅读全文
posted @ 2021-01-25 20:43 Black_Climber 阅读(1216) 评论(0) 推荐(0) 编辑
摘要: package main import ( "crypto/hmac" "crypto/sha256" "encoding/base64" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "strings" "time" ) type S 阅读全文
posted @ 2021-01-23 18:00 Black_Climber 阅读(653) 评论(0) 推荐(1) 编辑
摘要: package main import ( "encoding/json" "fmt" ) //定义一个类型 type test struct { Name string `json:"name,omitempty"` Age int `json:"age,omitempty"` } func ma 阅读全文
posted @ 2021-01-23 15:04 Black_Climber 阅读(478) 评论(0) 推荐(0) 编辑
摘要: package main import "fmt" //定义一个类型 type tsh struct { //定义成员,类型是func() string test func() string } func main() { t := tsh{ test: func() string { return 阅读全文
posted @ 2021-01-23 14:43 Black_Climber 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 转载: https://www.cnblogs.com/bester-ace/articles/9234229.html 阅读全文
posted @ 2021-01-19 20:11 Black_Climber 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 1.grep命令 [root@www ~]# grep [-acinv] [--color=auto] '搜寻字符串' filename 选项与参数: -a :将 binary 文件以 text 文件的方式搜寻数据 -c :计算找到 '搜寻字符串' 的次数 -i :忽略大小写的不同,所以大小写视为相 阅读全文
posted @ 2021-01-18 18:55 Black_Climber 阅读(55) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页