1
摘要: $ go get github.com/tidwall/gjson 操作 package main const json = ` { "name":{"first":"gaga", "小明": "frauk"}, "age": 18, "children": ["xiaohua", "jiajia" 阅读全文
posted @ 2020-09-07 16:37 Auroragaga 阅读(688) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "github.com/gomodule/redigo/redis" ) var pool *redis.Pool func init(){ pool = &redis.Pool{ MaxIdle: 8 ,//最大空闲连接数 MaxActive 阅读全文
posted @ 2020-09-07 11:02 Auroragaga 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 1.打开redis目录中的 redis.conf文件 将 bind:127.0.0.1注释掉,然后将protected-mode 改成no 改成这样! 如果还是连不上,应该是防火墙的问题, sudo systemctl status firewalld 查看防火墙状态 sudo systemctl 阅读全文
posted @ 2020-09-07 09:58 Auroragaga 阅读(76) 评论(0) 推荐(0) 编辑