上一页 1 2 3 4 5 6 7 8 ··· 31 下一页
摘要: 参考了官方文档,直接就可以了https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html 很好用 阅读全文
posted @ 2019-05-11 09:46 jackluo 阅读(1966) 评论(1) 推荐(0) 编辑
摘要: https://www.rabbitmq.com/tutorials/tutorial-one-go.html Rabbitmq的任务分发机制 开了三个任务窗口接收,发现是并行接收的 Message acknowledgment 消息确认 Message durability消息持久化 Fair d 阅读全文
posted @ 2019-05-05 14:02 jackluo 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: docker run -p 9200:9200 -d elasticsearch #直接拉取运行 #指定条件搜索curl --request GET \ --url 'http://localhost:9200/imooc/course/_search?q=ccmouse' \ --header 'Content-Type: application/json' \ ... 阅读全文
posted @ 2019-04-24 22:29 jackluo 阅读(294) 评论(0) 推荐(0) 编辑
摘要: maze.go maze.in 阅读全文
posted @ 2019-04-19 17:28 jackluo 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 最近我们有台 mysql 服务器一直报负载过高,不停的收到阿里云的报警短信,让我很抓狂,登陆上服务器,看下一下,慢查询日志 发现有60多万的慢查询日志,一看这个就知道是搜索带来的,一直想把搜索的服务给弄出来单独用elasticsearch 来做搜索服务,业务太忙,还没有来得及去架构, 再查了一下ng 阅读全文
posted @ 2019-04-18 15:06 jackluo 阅读(1735) 评论(0) 推荐(0) 编辑
摘要: 随便写一个名字叫nonrepeat.go的文件,然后再写了一个nonrepeat_test.go 然后执行: mac 上面还需要安装图形化的界面工具 https://www.macports.org/install.php ,实在不行参考 https://blog.csdn.net/qq_36847 阅读全文
posted @ 2019-04-16 22:25 jackluo 阅读(1795) 评论(0) 推荐(0) 编辑
摘要: arr := [...]int{0,1,2,3,4,5,6,7,8} s1 :=arr[2:6] s2 :=arr[3:5] s1=? //2,3,4,5 s2=? // 5,6 1 package main 2 3 import "fmt" 4 5 func main() { 6 arr := []int{0, 1, 2, 3, 4, 5,... 阅读全文
posted @ 2019-04-13 10:41 jackluo 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 最近 公司外网的测试的 redis 服务器被攻击,最开始是用 docker 搭建的 直接裸奔在外网,任何域名都可以通过 ip+6379来访问,最开始想的是测试服务器也没有啥,后面直接就被人登陆进去改了 redis 的密码,后面加强了一下,加了一个内网的访问地址 这样只允许内网访问,但是好景不长,结果 阅读全文
posted @ 2019-04-04 14:26 jackluo 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 最近一个 golang 写的 http.client 的,获取远程服务器数据,有时候会报错,尤其在数量很大的时候,老是收到 Connection reset by peer 这样的 提醒,都有点想用重试机制 百度,goolge 了一翻后,说的是 它会阻止连接被重用,可以有效的防止这个问题,也就是Ht 阅读全文
posted @ 2019-02-28 17:55 jackluo 阅读(7945) 评论(1) 推荐(0) 编辑
摘要: 公司有台老服务器,搭的php的环境,有个负载均横的服务 调用 curl_init 的时候报了 Problem with the SSL CA cert (path? access rights?) 网上各种脑补 当我用 rpm -V ca-certificates 这个命令时的确没有输出 一阵命令如 阅读全文
posted @ 2019-02-19 14:41 jackluo 阅读(591) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 31 下一页