张裕 发表于 2025-2-26 19:53:29

Windows环境下摆设Redis

https://i-blog.csdnimg.cn/direct/6d83fe402f5142fbab542cc9a7ec712e.png

目录
一、软件下载所在
二、界面化摆设
三、离线包摆设
四、Redis配置
1、修改端口号
2、修改远程可访问
五、客户端连接
1、redis-cli客户端下令
2、redis-desktop-manager客户端(保举)
3、RedisClient客户端
一、软件下载所在

https://github.com/tporadowski/redis/releases
https://i-blog.csdnimg.cn/direct/a412f723d34c4a399b147d7a950603ba.png
二、界面化摆设

下载Redis-x64-5.0.14.1.msi
然后根据如下方式举行安装
https://i-blog.csdnimg.cn/direct/7b5b99f7610344538ba2d57f2b6d8113.png
https://i-blog.csdnimg.cn/direct/160f1f849c9140c8b0ba6963b8957661.png
https://i-blog.csdnimg.cn/direct/7404a7d437624ecc8f033df5a3bbad29.png
https://i-blog.csdnimg.cn/direct/2f2939b92eef482c8c3b699678fb4339.png
https://i-blog.csdnimg.cn/direct/c3dfc85dbeb8417fae5bcd1359902b82.png
https://i-blog.csdnimg.cn/direct/ad24b385ef1e4bccb23461b564b449a2.png
三、离线包摆设

下载:Redis-x64-5.0.14.1.zip
解压到Windows文件夹下
https://i-blog.csdnimg.cn/direct/125915c1484b4b29b886603d6bc696f8.png
新建startRedisServer.bat文件,内里添加如下内容
@echo off
redis-server.exe redis.windows.conf
@pause 生存并双击,启动redis
四、Redis配置

配置文件为redis.windows.conf,配置修改皆在此文件中
1、修改端口号

https://i-blog.csdnimg.cn/direct/e91933e292954e75a5d6d8a7dad9a74f.png
2、修改远程可访问

64行修改为自己的IP所在
https://i-blog.csdnimg.cn/direct/8d0b2a76863d45fc9398ac593fa1a8b9.png
83行修改
protected-mode no https://i-blog.csdnimg.cn/direct/a462dd09fc9a48a08c8b681f620edfa4.png
五、客户端连接

1、redis-cli客户端下令

假如是连接本地默认端口,可以直接双击
https://i-blog.csdnimg.cn/direct/3e23731b3d994765a9db5aee31015dd2.png
https://i-blog.csdnimg.cn/direct/9d84ef31cc0e42919c923df32dde0cff.png
假如是远程,可直接使用cmd,定位到redis文件夹,然后输入如下下令
redis-cli.exe -h 127.0.0.1 -p 6379 2、redis-desktop-manager客户端(保举)

   下载所在:
链接: https://pan.baidu.com/s/18hoMUEtutvAC7pZreGjqcg?pwd=ng69 提取码: ng69 
https://i-blog.csdnimg.cn/direct/846b1007c9344d5f8deca08129fcf137.png
https://i-blog.csdnimg.cn/direct/c8e70f3df3cf48b3b4e47a63f528a449.png
https://i-blog.csdnimg.cn/direct/0da22cd4502e4b10b9b48c9e8f408baa.png
https://i-blog.csdnimg.cn/direct/4e298e43cd1e47adbbd5ba0dbd0d4458.png
https://i-blog.csdnimg.cn/direct/e35043e565eb4b16a9569ee9042f76a4.png
https://i-blog.csdnimg.cn/direct/93c079b521434423aab581034cb40243.png
https://i-blog.csdnimg.cn/direct/20997327ce14416a8fed063165738ad8.png
https://i-blog.csdnimg.cn/direct/4497f299598743478db0f0a493a1bc54.png
3、RedisClient客户端

软件下载所在:https://github.com/caoxinyu/RedisClient/releases
https://i-blog.csdnimg.cn/direct/a7ab4ec199414bfe8b27a3dfe019399c.png
双击redisclient-win32.x86_64.2.0.jar,打开客户端
https://i-blog.csdnimg.cn/direct/19b00835ddfa4672b938212ea8613a6b.png
https://i-blog.csdnimg.cn/direct/bc3e77d4fa084947a847d6da7a1c5aa3.png
参考学习资料:
Redis详解-CSDN博客


免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: Windows环境下摆设Redis