linux下安装redis
2015-09-28 13:29
603 查看
Redis可以到官方网站:http://www.redis.io/download下载
本文档用http://redis.googlecode.com/files/redis-2.4.14.tar.gz稳定版。
Win版下载地址:https://github.com/dmajkic/redis/downloads
[b]redis介绍[/b]
Redis是Remote Dictionary Server的缩写。他本质上一个Key/Value数据库,与Memcached类似的NoSQL型数据库,但是他的数据可以持久化的保存在磁盘上,解决了服务重启后数据不丢失的问题,他的值可以是string(字符串)、list(列表)、sets(集合)或者是ordered sets(被排序的集合),所有的数据类型都具有push/pop、add/remove、执行服务端的并集、交集、两个sets集中的差别等等操作,这些操作都是具有原子性的,Redis还支持各种不同的排序能力。
安装redis
#yum install -y tcl
[b]下载地址[/b]
#wget http://download.redis.io/releases/redis-2.8.19.tar.gz
[b]解压缩
#tar zxvf redis-2.8.19.tar.gz -C /usr/local/[/b]
[b]编译[/b]
#cd redis-2.8.19
#make
#make test
[b]安装路径
#make PREFIX=/usr/local/redis install[/b]
指定配置文件路径
#mkdir /etc/redis 创建配置文件目录
#cp /usr/local/redis-2.8.19/redis.conf /etc/redis/
#/etc/redis/redis.conf 配置文件路径
/article/4621139.html 配置文件详解
http://blog.chinaunix.net/uid-790245-id-3766268.html 主从配置
#grep -v '^#\|^$' /etc/redis/redis.conf 查看配置文件
#/data/redis 数据存放路径
#/var/log/redis/redis.log 日志存放路径
[b]启动脚本文件
#cp -a /usr/local/redis-2.8.19/utils/redis_init_script /etc/rc.d/init.d/redis[/b]
#!/bin/sh
#
# chkconfig: - 20 80 增加内容:支持chkconfig --add
# Simple Redis init.d script conceived to work on Linux systems
# as it does use of the /proc filesystem.
REDISPORT=6380 端口需与配置文件保持一致
EXEC=/usr/local/redis/bin/redis-server 修改
CLIEXEC=/usr/local/redis/bin/redis-cli 修改
#chkconfig --add redis
#chkconfig redis on
#/etc/init.d/redis start|stop
[b]将Redis的命令所在目录添加到系统参数PATH中 [/b]
#vi /etc/profile
#source /etc/profile 加载生效
#/etc/init.d/redis start|stop
#redis-cli 连接验证客户端是否可以登录
其他redis相关资料链接
官方主站:http://www.redis.io/
下载地址:http://www.redis.cn/download.html
Interactive Tutorial:http://try.redis-db.com/ 一步一步教你熟悉Redis的基本命令
Command API:http://redis.io/commands http://www.redis.cn/commands.html
客户端程序:http://redis.io/clients
Redis文档:http://redis.io/documentation
命令参考:http://manual.csser.com/redis/
Redis内存使用优化与存储:
http://www.infoq.com/cn/articles/tq-redis-memory-usage-optimization-storage
Redis复制与可扩展集群搭建:
http://www.infoq.com/cn/articles/tq-redis-copy-build-scalable-cluster
Redis资料汇总专题http://blog.nosqlfan.com/html/3537.html
将redis变成数据库:http://code.google.com/p/alchemydatabase/
类似的产品:http://code.google.com/p/memlink/
redis-dump,将Redis数据dump成json格式的工具:https://github.com/delano/redis-dump
本文档用http://redis.googlecode.com/files/redis-2.4.14.tar.gz稳定版。
Win版下载地址:https://github.com/dmajkic/redis/downloads
[b]redis介绍[/b]
Redis是Remote Dictionary Server的缩写。他本质上一个Key/Value数据库,与Memcached类似的NoSQL型数据库,但是他的数据可以持久化的保存在磁盘上,解决了服务重启后数据不丢失的问题,他的值可以是string(字符串)、list(列表)、sets(集合)或者是ordered sets(被排序的集合),所有的数据类型都具有push/pop、add/remove、执行服务端的并集、交集、两个sets集中的差别等等操作,这些操作都是具有原子性的,Redis还支持各种不同的排序能力。
安装redis
#yum install -y tcl
[b]下载地址[/b]
#wget http://download.redis.io/releases/redis-2.8.19.tar.gz
[b]解压缩
#tar zxvf redis-2.8.19.tar.gz -C /usr/local/[/b]
[b]编译[/b]
#cd redis-2.8.19
#make
#make test
[b]安装路径
#make PREFIX=/usr/local/redis install[/b]
指定配置文件路径
#mkdir /etc/redis 创建配置文件目录
#cp /usr/local/redis-2.8.19/redis.conf /etc/redis/
#/etc/redis/redis.conf 配置文件路径
/article/4621139.html 配置文件详解
http://blog.chinaunix.net/uid-790245-id-3766268.html 主从配置
#grep -v '^#\|^$' /etc/redis/redis.conf 查看配置文件
#/data/redis 数据存放路径
#/var/log/redis/redis.log 日志存放路径
[b]启动脚本文件
#cp -a /usr/local/redis-2.8.19/utils/redis_init_script /etc/rc.d/init.d/redis[/b]
#!/bin/sh
#
# chkconfig: - 20 80 增加内容:支持chkconfig --add
# Simple Redis init.d script conceived to work on Linux systems
# as it does use of the /proc filesystem.
REDISPORT=6380 端口需与配置文件保持一致
EXEC=/usr/local/redis/bin/redis-server 修改
CLIEXEC=/usr/local/redis/bin/redis-cli 修改
#chkconfig --add redis
#chkconfig redis on
#/etc/init.d/redis start|stop
[b]将Redis的命令所在目录添加到系统参数PATH中 [/b]
#vi /etc/profile
export PATH=
"$PATH:/usr/local/redis/bin"
#source /etc/profile 加载生效
#/etc/init.d/redis start|stop
#redis-cli 连接验证客户端是否可以登录
其他redis相关资料链接
官方主站:http://www.redis.io/
下载地址:http://www.redis.cn/download.html
Interactive Tutorial:http://try.redis-db.com/ 一步一步教你熟悉Redis的基本命令
Command API:http://redis.io/commands http://www.redis.cn/commands.html
客户端程序:http://redis.io/clients
Redis文档:http://redis.io/documentation
命令参考:http://manual.csser.com/redis/
Redis内存使用优化与存储:
http://www.infoq.com/cn/articles/tq-redis-memory-usage-optimization-storage
Redis复制与可扩展集群搭建:
http://www.infoq.com/cn/articles/tq-redis-copy-build-scalable-cluster
Redis资料汇总专题http://blog.nosqlfan.com/html/3537.html
将redis变成数据库:http://code.google.com/p/alchemydatabase/
类似的产品:http://code.google.com/p/memlink/
redis-dump,将Redis数据dump成json格式的工具:https://github.com/delano/redis-dump
相关文章推荐
- Redis的安装和启动
- Sentinel模式下的主从切换
- Redis 使用.net实际教程
- Redis 宕机之后 启动失败 启动不了 原因之一 aof 文件出错 以及持久化介绍
- Java下利用Jedis开发Redis
- 【推荐】redis的主从复制配置
- redis在.net架构中的应用
- Redis 在线测试
- redis.conf配置详细解析
- Redis 作为多个Windows服务运行配置方法
- Cygwin编译redis
- redis有string,hash,list,sets.zsets几种数据类型
- redis key,string,hash,list,set,zset指令汇总
- 用Python组合Celery Redis RabbitMQ进行分布式数据抓取
- Redis安装、配置、操作、持久化、主从、phpredis扩展安装使用详解之操作使用
- 通过yum安装redis
- redis
- 使用elk+redis搭建nginx日志分析平台
- linux redis安装源码包安装
- Redis 命令 - Pub/Sub