摘要: 特性 消息发布者,即publish客户端,无需独占链接,你可以在publish消息的同时,使用同一个redis-client链接进行其他操作 消息订阅者,即subscribe客户端,需要独占链接,即进行subscribe期间,redis-client无法穿插其他操作,此时client以阻塞的方式等待 阅读全文
posted @ 2018-09-27 22:11 温柔的风 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 在从库的客户端执行show slave status\G; 有一个Seconds_Behind_Master,意思是从库执行的事务或者sql落后主库多长时间,还可以说是从库是主库多少秒之前的状态。 主从同步出现的延迟问题原因及解决方案 根本原因一、 重放中继日志超时 原因二、 主库的从库太多,导致复 阅读全文
posted @ 2018-09-27 21:50 温柔的风 阅读(993) 评论(0) 推荐(0) 编辑
摘要: //截取普通字符串 func substr(title interface{}) string { title_pro := title.(string) rs := []rune(title_pro) str := string(rs[0:len(rs)-4])return str } 阅读全文
posted @ 2018-09-27 20:04 温柔的风 阅读(667) 评论(0) 推荐(0) 编辑
摘要: 报错 Unable to negotiate with 115.29.11.157 port 29418: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc 解决办法 编辑 /etc/ssh/ssh_con 阅读全文
posted @ 2018-09-27 19:33 温柔的风 阅读(1589) 评论(0) 推荐(0) 编辑
摘要: 1.下载补丁 下载 https://pan.baidu.com/s/1mcQM8CLUnweY02ahKEr4PQ 并将 JetbrainsCrack-release-enc.jar 放置到 goland安装目录的\bin目录下(位置可随意,只要配置文件填写补丁的绝对路径) 二、拷贝并编辑配置文件 阅读全文
posted @ 2018-09-27 16:23 温柔的风 阅读(600) 评论(0) 推荐(0) 编辑