摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/oracle/2016/0216/89.html?1455872314 使用记录类型变量只能保存一行数据,这限制了SELECT语句的返回行数​,如果SELECT语句返回多行就会错。Oracle提供了另外一种自 阅读全文
posted @ 2016-02-19 17:00 超超hd 阅读(4651) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/92.html?1455871954 如何在win7系统中安装redis​1、下载Redis的压缩包 https://github.com/dmajkic/redis/down 阅读全文
posted @ 2016-02-19 16:57 超超hd 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/93.html?1455871461 Redis​作为一个高速内存键值对(Key-Value)数据库,被广泛的使用,如果是远程连接,必须考虑到安全问题。那么如何对Redis进行 阅读全文
posted @ 2016-02-19 16:51 超超hd 阅读(829) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/94.html?1455870894 1. 准备运行环境 * 设置oom handler​,zmalloc分配内存失败时调用* 初始化随机种子,用于生成随机数* 将server 阅读全文
posted @ 2016-02-19 16:37 超超hd 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/96.html?1455870708 一、redis简单介绍 redis是NoSql​家族的一员,键值对的内存型数据库。但是它支持把数据保存到本地。这点比memcached好。 阅读全文
posted @ 2016-02-19 16:33 超超hd 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/97.html?1455870336 如何在Linux​上安装Redis呢,下面以阿里云主机linux 64位作为示例进行安装测试: 1、下载源码编译并安装 # wget ht 阅读全文
posted @ 2016-02-19 16:29 超超hd 阅读(1294) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/98.html?1455870209 Redis是一个超精简的基于内存的键值对数据库(key-value),一般对并发有一定要求的应用都用其储存session,乃至整个数据库。 阅读全文
posted @ 2016-02-19 16:25 超超hd 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/99.html?1455869981 代码如下: # Redis示例配置文件 # 注意单位问题:当需要设置内存大小的时候,可以使用类似1k、5GB、4M这样的常见格式:## 1 阅读全文
posted @ 2016-02-19 16:22 超超hd 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/100.html?1455869650 redis 是一个高性能的key-value数据库​。 redis的出现,很大程度补偿了memcached这类keyvalue存储的不足 阅读全文
posted @ 2016-02-19 16:19 超超hd 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/101.html?1455869487 我发现经常研究并且为之兴奋的一件事就是对系统进行扩展。现在这对不同的人有着不同的意思。作为移植Monolithic应用到Microser 阅读全文
posted @ 2016-02-19 16:14 超超hd 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/102.html?1455869303 安装过程: 代码如下: wget http://code.google.com/p/redis/downloads/detail?nam 阅读全文
posted @ 2016-02-19 16:11 超超hd 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/103.html?1455869099 NoSQL简介 介绍redis前,我想还是先认识下NoSQL,​即not only sql, 是一种非关系型的数据存储,key/valu 阅读全文
posted @ 2016-02-19 16:08 超超hd 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/104.html?1455868495 Redis对于Linux​是官方支持的,安装和使用没有什么好说的,普通使用按照官方指导,5分钟以内就能搞定。详情请参考: http:// 阅读全文
posted @ 2016-02-19 16:02 超超hd 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/105.html?1455868313 Redis在很多方面与其他数据库解决方案不同:它使用内存提供主存储支持,而仅使用硬盘做持久性的存储;它的数据模型非常独特,用的是单线程。 阅读全文
posted @ 2016-02-19 15:54 超超hd 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/106.html?1455867541 一、解决主从复制问题 当使用Redis作为存储引擎的时候,并且使用Redis​读写分离,从机作为读的情况,从机宕机或者和主机断开连接都需 阅读全文
posted @ 2016-02-19 15:42 超超hd 阅读(1709) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/107.html?1455867352 1、redis-benchmarkredis基准信息,redis服务器性能检测 redis-benchmark -h localhost 阅读全文
posted @ 2016-02-19 15:38 超超hd 阅读(976) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/108.html?1455861435 一、redis 数据结构使用场景 原来看过 redisbook ​这本书,对 redis 的基本功能都已经熟悉了,从上周开始看 redi 阅读全文
posted @ 2016-02-19 14:28 超超hd 阅读(967) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/109.html?1455861283 redis的备份和还原,借助了第三方的工具,redis-dump 1、安装redis-dump​ 代码如下: [root@localho 阅读全文
posted @ 2016-02-19 13:57 超超hd 阅读(2521) 评论(0) 推荐(0) 编辑
摘要: Redis 中有删除单个 Key 的指令 DEL,但好像没有批量删除 Key 的指令,不过我们可以借助 Linux 的 xargs 指令来完成这个动作。 代码如下: redis-cli keys “*” | xargs redis-cli del //如果redis-cli没有设置成系统变量,需要指 阅读全文
posted @ 2016-02-19 13:53 超超hd 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.itxuexiwang.com/a/shujukujishu/redis/2016/0216/111.html?1455860961 【本教程目录】 1.redis是什么2.redis的作者何许人也3.谁在使用redis4.学会安装redis​5.学会启动redis6. 阅读全文
posted @ 2016-02-19 13:51 超超hd 阅读(235) 评论(0) 推荐(0) 编辑