一.介绍

redis is an open source (bsd licensed), in-memory data structure store, used as a database, cache and message broker. it supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. redis has built-in replication, lua scripting, lru eviction, transactions and different levels of on-disk persistence, and provides high availability via redis sentinel and automatic partitioning with redis cluster.

(redis是一个开放源代码(bsd许可)的内存中数据结构存储,用作数据库,缓存和消息代理。它支持数据结构,例如字符串,哈希,列表,集合,带范围查询的排序集合,位图,超级日志,带有半径查询和流的地理空间索引。redis具有内置的复制,lua脚本,lru驱逐,事务和不同级别的磁盘持久性,并通过redis sentinel和redis cluster自动分区提供了高可用性)

二.安装

1.centos

下载

执行命令: wget http://download.redis.io/releases/redis-5.0.7.tar.gz

 

 解压

tar -xvzf redis-5.0.7.tar.gz

 

 执行命令:make

启动服务

执行命令:src/redis-server ./redis.conf

二.windows

下载地址:

 

启动 

执行命令:redis-server.exe redis.windows.conf

 

 

问题解决:

wget unable to resolve host address 

摘要:

wget:无法解析主机地址。这就能看出是dns解析的问题。

执行命令:vim /etc/resolv.conf

修改内容为下
nameserver 8.8.8.8 #google域名服务器
nameserver 8.8.4.4 #google域名服务器

 

 

参考文档: