随笔 - 57,  文章 - 0,  评论 - 25,  阅读 - 26624

1、直接在地址栏输入cmd回车打开命令窗口,输入 redis-server redis.windows.conf 然后回车

2、在cmd命令窗口输入以下命令并回车安装Windows本地服务
redis-server --service-install redis.windows-service.conf

3、常用Redis服务命令

(1)开启服务:redis-server --service-start

(2)停止服务:redis-server --service-stop

(3)卸载服务:redis-server --service-uninstall


redis 文件夹下cmd 输入 redis-server.exe redis.windows.conf 启动redis

再打开一个cmd窗口,输入redis-cli.exe -h 127.0.0.1 -p 6379并回车,然后在输入set name fish 并回车,
在输入get name,看到如下效果,证明已经成功安装Redis
D:\Redis-x64-3.0.504>redis-cli.exe -h 127.0.0.1 -p 6379
127.0.0.1:6379> set name fishcat
OK
127.0.0.1:6379> get name
"fishcat"
127.0.0.1:6379>

posted on   尝尝手指  阅读(125)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示