作者:李小白无悔 | 来源:互联网 | 2023-05-19 15:29
这篇博客写得挺全的:https:blog.csdn.netachenyuanarticledetails78521831?locationNum3&fps1我也是跟着这
这篇博客写得挺全的:
https://blog.csdn.net/achenyuan/article/details/78521831?locatiOnNum=3&fps=1
我也是跟着这篇博客撸的代码,就不做复述了
途中有个小坑,就是修改完redis.conf文件后,重新启动redis:
./src/redis-server redis.conf
必需要指定redis.conf文件启动啊,真的是会有各种问题使用java连接不上
我写的简单测试连接linux上的redis:
使用maven添加jedis包
redis.clients
jedis
2.9.0
测试连接代码:
![](https://img.php1.cn/3cd4a/1e618/cd5/af17da15769ccb2e.jpeg)
》》》》》》》》》》》》使用redis Desktop manager图形工具连接》》》》》》》》》》》》》》》》》》》》
![](https://img.php1.cn/3cd4a/1eebe/cd5/7494af3c1cda418d.webp)