上一页 1 2 3 4 5 6 7 8 ··· 25 下一页
摘要: 1.根据版本查看如下地址 https://github.com/nodesource/distributions 我是Debian GNU/Linux 10 升级到16.x 的版本执行如下 # Using Ubuntu curl -fsSL https://deb.nodesource.com/se 阅读全文
posted @ 2022-01-21 09:28 随心朝阳 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 1、创建索引: 创建两个索引 “a”和“b”(使用super用户): 索引A:curl -XPUT -u userName:password http://localhost:9200/indexa 索引B:curl -XPUT -u userName:password http://localho 阅读全文
posted @ 2022-01-13 09:42 随心朝阳 阅读(1739) 评论(0) 推荐(0) 编辑
摘要: 升级背景,业务sdk报错如下 1.升级glibc有风险,如无特殊需要,不建议升级!(已经测试废了n个容器/虚拟机) 2.开始升级 #安装gcc make yum install gcc make -y #下载glibc包 curl -O https://mirrors.tuna.tsinghua.e 阅读全文
posted @ 2022-01-11 10:34 随心朝阳 阅读(864) 评论(0) 推荐(0) 编辑
摘要: 导出: mapping和data docker run --rm -ti -v /data:/tmp taskrabbit/elasticsearch-dump \ --input=http://10.33.0.20:9200/my-index \ --output=/tmp/my_index_ma 阅读全文
posted @ 2021-12-17 14:43 随心朝阳 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1.报错原因 /usr/local/rocketmq/bin/runserver.sh: 70: [[: not found Unrecognized option: -Xlog:gc*:file=/dev/shm/rmq_srv_gc_%p_%t.log:time,tags:filecount=5 阅读全文
posted @ 2021-12-15 09:37 随心朝阳 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 1.读文件 package main import ( "bufio" "fmt" "io" "os" ) //go去读文件内容 func ReadAll(filePth string) string{ file, err := os.Open(filePth) defer file.Close() 阅读全文
posted @ 2021-12-07 16:40 随心朝阳 阅读(69) 评论(0) 推荐(0) 编辑
摘要: // float 保留2位小数 func Decimal(value float64) float64 { value, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", value), 64) return value } //fload64 --> strin 阅读全文
posted @ 2021-12-07 16:30 随心朝阳 阅读(1214) 评论(0) 推荐(0) 编辑
摘要: 1.打印前一天的时间 package main import ( "fmt" "time" ) func main() { timeObj := time.Now() yesTime := timeObj.AddDate(0,0,-1) //时间戳格式化 //var timeFlag1 = time 阅读全文
posted @ 2021-12-07 16:25 随心朝阳 阅读(391) 评论(0) 推荐(0) 编辑
摘要: package main import "fmt" func main() { n := 2 sInt := fmt.Sprintf("%02d", n) fmt.Println(sInt) } 阅读全文
posted @ 2021-12-07 16:17 随心朝阳 阅读(740) 评论(0) 推荐(0) 编辑
摘要: 1.Ingress 配置文件配置如下不生效,程序一直504 timeout nginx.ingress.kubernetes.io/proxy-connect-timeout: "6000s" nginx.ingress.kubernetes.io/proxy-read-timeout: "6000 阅读全文
posted @ 2021-11-17 17:46 随心朝阳 阅读(8395) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页