会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
幸运使者
博客园
首页
新随笔
联系
订阅
管理
2021年10月8日
golang 正则获得字符串中的ip
摘要: 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 幸运使者
阅读(962)
评论(0)
推荐(0)
2021年2月22日
golang备注
摘要: golang `json:"-"` // 表示不进行序列化
阅读全文
posted @ 2021-02-22 19:44 幸运使者
阅读(83)
评论(0)
推荐(0)
2019年8月26日
go 写文件
摘要: 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 幸运使者
阅读(183)
评论(0)
推荐(0)
2019年8月19日
go 实现斐波那契额
摘要: 留给注释了:
阅读全文
posted @ 2019-08-19 10:36 幸运使者
阅读(457)
评论(0)
推荐(0)
2019年8月9日
go选择排序
摘要: 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 幸运使者
阅读(210)
评论(0)
推荐(0)
ops manager安装配置
摘要: 下载地址: 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 幸运使者
阅读(1606)
评论(0)
推荐(0)
mongodb4.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 幸运使者
阅读(808)
评论(0)
推荐(0)
mongodb4.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 幸运使者
阅读(631)
评论(0)
推荐(0)
mongodb副本集搭建过程
摘要: 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 幸运使者
阅读(229)
评论(0)
推荐(0)
erlang一次线上问题解决
摘要: 1.异常的原因: (1).DocumentDB重启导致一段时间服务不可以使用,并且DocumentDB无法实现主备的切换; (2).statistic_record_service, thirdparty_control,queue_message这三个gen_server由于在访问Document
阅读全文
posted @ 2019-08-09 14:06 幸运使者
阅读(1938)
评论(0)
推荐(0)
下一页
公告