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