window如何启动redis
- 安装目录,默认安装路径
C:\Program Files\Redis>
- 文件列表
C:\Program Files\Redis 的目录
2018/07/04 17:42 <DIR> .
2018/07/04 17:42 <DIR> ..
2018/07/04 17:42 2,672 dump.rdb
2016/07/01 16:27 1,024 EventLog.dll
2016/07/01 16:07 12,509 Redis on Windows Release Notes.docx
2016/07/01 16:07 16,727 Redis on Windows.docx
2016/07/01 16:28 409,088 redis-benchmark.exe
2016/07/01 16:28 4,370,432 redis-benchmark.pdb
2016/07/01 16:28 257,024 redis-check-aof.exe
2016/07/01 16:28 3,518,464 redis-check-aof.pdb
2016/07/01 16:28 499,712 redis-cli.exe
2016/07/01 16:28 4,526,080 redis-cli.pdb
2016/07/01 16:28 1,666,560 redis-server.exe
2016/07/01 16:28 7,081,984 redis-server.pdb
2018/05/28 18:48 48,212 redis.windows-service.conf
2016/07/01 16:07 48,201 redis.windows.conf
2018/07/04 17:42 4,998 server_log.txt
2016/07/01 09:17 14,265 Windows Service Documentation.docx
16 个文件 22,477,952 字节
2 个目录 17,514,844,160 可用字节
- 当前目录下启动redis
C:\Program Files\Redis> redis-server.exe redis.windows.conff
- 启动成功如下
C:\Program Files\Redis>redis-server.exe redis.windows.conf
[19396] 04 Jul 17:03:53.915 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- 客户端连接操作redis
C:\Program Files\Redis> redis-cli.exe
127.0.0.1:6379>
- 获取redis下所有存储的key值
127.0.0.1:6379> keys *
- 简单的存取字符串
127.0.0.1:6379> set haha hehe
OK
127.0.0.1:6379> get haha
"hehe"
127.0.0.1:6379>
。。。。。。待续
网友评论