【Redis基础】1-Windows下安装Redis Server
来源:互联网 发布:php 面试 编辑:程序博客网 时间:2024/05/22 05:10
1、官网下载后的安装包有多个版本,选择的版本是redis-2.8.17
2、解压后
redis-benchmark.exe #基准测试redis-check-aof.exe # aofredis-check-dump.exe # dumpredis-cli.exe # 客户端redis-server.exe # 服务器redis.windows.conf # 配置文件
3、安装服务,cmd进入Redis 解压后的目录,这里是是D:\redisD:\redis>redis-server.exe redis.windows.conf[4692] 27 Nov 12:14:05.995 #The Windows version of Redis allocates a memory mapped heap for sharing withthe forked process used for persistence operations. In order to share thismemory, Windows allocates from the system paging file a portion equal to thesize of the Redis heap. At this time there is insufficient contiguous freespace available in the system paging file for this operation (Windows error0x5AF). To work around this you may either increase the size of the systempaging file, or decrease the size of the Redis heap with the --maxheap flag.Sometimes a reboot will defragment the system paging file sufficiently forthis operation to complete successfully.Please see the documentation included with the binary distributions for moredetails on the --maxheap flag.Redis can not continue. Exiting.
出现错误,提示是maxheap有问题,打开配置文件 redis.windows.conf ,搜索 maxheap , 指定好大小.
# maxheap <bytes>maxheap 1024000000
然后再次启动,OK,成功.
D:\redis7>redis-server.exe redis.windows.conf _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 2.8.17 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in stand alone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 2700 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-'[2700] 27 Nov 12:15:44.958 # Server started, Redis version 2.8.17[2700] 27 Nov 12:15:44.958 * DB loaded from disk: 0.000 seconds[2700] 27 Nov 12:15:44.958 * The server is now ready to accept connections on port 6379
5、客户端访问测试另起一个cmd窗口:
0 0
- 【Redis基础】1-Windows下安装Redis Server
- windows下安装redis
- windows下安装redis
- windows下安装redis
- windows下安装redis
- windows下安装redis
- windows下安装redis
- windows下安装redis
- windows下安装redis
- windows下安装redis
- windows下安装redis
- windows下redis安装
- Windows下安装Redis
- windows下安装Redis
- windows下安装redis
- windows下安装redis
- windows下安装redis
- windows下安装redis
- c语言软件防抖动按键
- Android将来五大关头
- (转载)Android Camera 使用小结
- 黑马程序员--10 OC Foundation框架
- jquery的样式操作Css Class(addClass,removeClass,toggleClass)
- 【Redis基础】1-Windows下安装Redis Server
- 常用的排序算法的时间复杂度和空间复杂度
- poj 2763 lca(rmq)+树状数组(在一棵树上妈妈叫回家)
- git fetch
- Java DES工具类
- java反射
- android之handler
- Android性能优化典范
- Handler(6)