![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工具包
文章平均质量分 71
咕叽咕叽的汪
这个作者很懒,什么都没留下…
展开
-
springboot2.x采用lettuce整合redis集群
文章目录1 springboot2.x采用lettuce整合redis集群1.1 pom依赖1.2 配置文件(properties或yml)1.3 代码类1.3.1 配置类1.3.2 测试类1 springboot2.x采用lettuce整合redis集群1 概念说明springboot1.x系列中使用的是jedis, springboot2.x使用的是Lettuce。关于jedis跟lettuce的区别:Lettuce 和 Jedis 都是Redis的client,都可以连接redis se原创 2020-11-03 17:07:35 · 2441 阅读 · 1 评论 -
windows下搭建redis-cluster集群
文章目录1 在windows下搭建redis-cluster集群1.1 安装文件1.2 安装说明1.2.1 安装redis1.2.2 安装redis环境ruby1.2.3 创建redis集群1 在windows下搭建redis-cluster集群参考网址https://www.cnblogs.com/yy3b2007com/p/11033009.htmlhttps://blog.csdn.net/zsg88/article/details/73715947https://blog.csdn.n原创 2020-11-02 18:00:38 · 328 阅读 · 0 评论 -
java获取linux服务的系统信息(cpu使用率、内存使用率、系统负载)
文章目录1 代码1.1 工具类1.2 辅助bean2 问题2.1 java使用Runtime.exec执行linux命令不成功问题2.1.1 问题说明2.1.2 问题原因2.1.3 解决方案1 代码1.1 工具类说明:cpu使用率,可以采用jdk8原生的方法,但是有博客说不太准确,这里不做说明。import cn.hzp.util.linuxinfo.bean.CpuInfoBean;import com.sun.management.OperatingSystemMXBean;import l原创 2020-10-26 19:33:14 · 4421 阅读 · 7 评论