摘要: 第一步: 安装 安装工具brew install kafka 会自动安装依赖zookeeper 注:安装配置文件位置 /usr/local/etc/kafka|zookeeper 注: #tickTime: zookeeper中使用的基本时间单位, 毫秒值. #dataDir: 数据目录. 可以是任 阅读全文
posted @ 2017-09-19 12:21 简笔话_Golden 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 安装brew软件 安装方法: 在Mac中打开Termal: 输入命令: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 回车(这里有提示目录不存在,要 阅读全文
posted @ 2017-09-19 12:18 简笔话_Golden 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 解决方案一:#获取连接时候验证,会影响性能spring.datasource.test1.test-on-borrow=true#指明连接是否被空闲连接回收器(如果有)进行检验,如果检测失败,则连接将被从池中去除spring.datasource.test1.test-while-idle = tr 阅读全文
posted @ 2017-09-19 10:23 简笔话_Golden 阅读(856) 评论(0) 推荐(0) 编辑
摘要: 解决方法: jdbc的url添加参数: jdbc.url=jdbc:mysql://localhost:3306/totosea?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false jdb 阅读全文
posted @ 2017-09-19 10:19 简笔话_Golden 阅读(1742) 评论(0) 推荐(0) 编辑