一.介绍git
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.github
(Redis是一个开放源代码(BSD许可)的内存中数据结构存储,用做数据库,缓存和消息代理。它支持数据结构,例如字符串,哈希,列表,集合,带范围查询的排序集合,位图,超级日志,带有半径查询和流的地理空间索引。Redis具备内置的复制,Lua脚本,LRU驱逐,事务和不一样级别的磁盘持久性,并经过Redis Sentinel和Redis Cluster自动分区提供了高可用性)redis
二.安装数据库
1.Centosvim
下载windows
执行命令: wget http://download.redis.io/releases/redis-5.0.7.tar.gz缓存
解压服务器
tar -xvzf redis-5.0.7.tar.gz数据结构
执行命令:makeide
启动服务
执行命令:src/redis-server ./redis.conf
二.Windows
下载地址:https://github.com/microsoftarchive/redis/releases
启动
执行命令: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域名服务器
参考文档:https://redis.io/