摘要: package mainimport ( "fmt" "regexp")func main() { sss := "dad192.168.1.1werwer" regstr := `\d+\.\d+\.\d+\.\d+` //两个及两个以上空格的正则表达式 reg, _ := regexp.Comp 阅读全文
posted @ 2021-10-08 19:55 幸运使者 阅读(870) 评论(0) 推荐(0) 编辑
摘要: golang `json:"-"` // 表示不进行序列化 阅读全文
posted @ 2021-02-22 19:44 幸运使者 阅读(79) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "os" ) type student struct { Name string Age int Score float32 } //从字符串中格式化输入 func formateFromstr() { str := "stu01 18 89.92" var stu student fmt.Sscanf(str, "%s %d %f", &s 阅读全文
posted @ 2019-08-26 19:49 幸运使者 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 留给注释了: 阅读全文
posted @ 2019-08-19 10:36 幸运使者 阅读(452) 评论(0) 推荐(0) 编辑
摘要: package main import "fmt" func selectSort(a []int) { k := len(a) - 1 largest := 0 flag := true for i := k; i > 0; i-- { largest = 0 for j := 1; j a[largest] { largest = j flag = ... 阅读全文
posted @ 2019-08-09 19:33 幸运使者 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 下载地址: ops-manager下载: wget https://downloads.mongodb.com/on-prem-mms/rpm/mongodb-mms-4.0.6.50317.20181210T1346Z-1.x86_64.rpm mongodb下载: wget https://fa 阅读全文
posted @ 2019-08-09 16:22 幸运使者 阅读(1556) 评论(0) 推荐(0) 编辑
摘要: 基本环境搭建:useradd octopus-app-userchgrp octopus-app-user /data -Rchown octopus-app-user /data -R IP:10.250.67.54 IP:10.250.67.26 IP:10.250.67.4 mongos(27 阅读全文
posted @ 2019-08-09 16:21 幸运使者 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 搭建过程中遇到的问题 问题一;MongoDB BadValue configdb supports only replica set connection String答案:https://blog.csdn.net/zy_281870667/article/details/78452410 如上, 阅读全文
posted @ 2019-08-09 16:16 幸运使者 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 1.https://www.cnblogs.com/out-of-memory/p/6810525.html(1)配置文件master: dbpath=/data/mongodb/master/data logpath=/data/mongodb/master/log/mongodb.log pid 阅读全文
posted @ 2019-08-09 16:15 幸运使者 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1.异常的原因: (1).DocumentDB重启导致一段时间服务不可以使用,并且DocumentDB无法实现主备的切换; (2).statistic_record_service, thirdparty_control,queue_message这三个gen_server由于在访问Document 阅读全文
posted @ 2019-08-09 14:06 幸运使者 阅读(1815) 评论(0) 推荐(0) 编辑