• Redis简介

Redis是一个开源的使用ANSI C语言编写、支持网络、可基于内存亦可持久化的日志型、Key-Value数据库,并提供多种语言的API。

Redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash(哈希类型)。这些数据类型都支持push/pop、add/remove及取交集并集和差集及更丰富的操作,而且这些操作都是原子性的。在此基础上,redis支持各种不同方式的排序。与memcached一样,为了保证效率,数据都是缓存在内存中。区别的是redis会周期性的把更新的数据写入磁盘或者把修改操作写入追加的记录文件,并且在此基础上实现了master-slave(主从)同步。

  • Redis相关资源下载
  1. Redis官网:http://redis.io/
  2. Redis Linux版下载:http://redis.io/download
  3. Redis Windows版下载:https://github.com/MSOpenTech/redis
  4. Redis 连接工具Windows版:http://redisdesktop.com/download
  • Windows下启动Redis服务
  1. 打开cmd进入redis的bin目录
  2. 输入命令:
redis-server redis.conf

若出现如下提示:

The Windows version of Redis allocates a memory mapped heap for sharing with
the forked process used for persistence operations. In order to share this
memory, Windows allocates from the system paging file a portion equal to the
size of the Redis heap. At this time there is insufficient contiguous free
space available in the system paging file for this operation (Windows error
0x5AF). To work around this you may either increase the size of the system
paging file, or decrease the size of the Redis heap with the --maxheap flag.
Sometimes a reboot will defragment the system paging file sufficiently for
this operation to complete successfully. Please see the documentation included with the binary distributions for more
details on the --maxheap flag. Redis can not continue. Exiting.

则可加入参数:--maxheap 100M;或在配置文件redis.conf中末尾增加maxheap 100M。

最新文章

  1. 隐马尔科夫模型python实现简单拼音输入法
  2. 去掉tableView的header view的粘黏性
  3. oracle 10g 学习之数据进行增删改查、数据库事务、约束(8)
  4. spring 常见错误
  5. CGAffineTransformMake(a,b,c,d,tx,ty) 矩阵运算的原理 (转载)
  6. IO调度算法研究1
  7. springcloud(六):配置中心(一)
  8. 02 Redis关闭服务报错---(error) ERR Errors trying to SHUTDOWN. Check logs.
  9. ARM7与GSM实现的简单的远程控制
  10. JavaScript实现单张图片上传功能
  11. python初步学习-import和datetime模块
  12. Two Melodies CodeForces - 813D (DP,技巧)
  13. css 如何使图片与文字在div中居中展示?
  14. 含有虚函数的类sizeof大小
  15. Excel英语成绩单
  16. 详解SQL Server数据修复命令DBCC的使用
  17. 如何模拟登陆添加了CSRF保护的网站
  18. blender, 同时选择多个顶点
  19. [android] AndroidManifest.xml -【manifest】
  20. 洛谷 P1022 计算器的改良

热门文章

  1. 【eclipse】启动不了报错java was started but returned exit code=13
  2. 为什么我们选择parquet
  3. 基于GTID搭建MHA
  4. Angular Material 教程之布局篇
  5. 揭开A*算法的神秘面纱
  6. spring mvc:练习:表单验证(javaConfig配置和注解)
  7. bzoj1083: [SCOI2005]繁忙的都市 瓶颈生成树
  8. 第一阶段考试:实战Linux系统日常管理
  9. torch Tensor学习:切片操作
  10. PHP---初探PHP