Redis系列(一):介绍、安装(Docker、Windows、Linux)
一.介绍 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自动分区提供了高可用性) 官网https://redis.io/ 二.安装 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 下载地址:https://github.com/microsoftarchive/redis/releases ? 启动? 执行命令:redis-server.exe redis.windows.conf ?三.Dokcer ?执行命令:?? ? ? ? 执行命令:docker run -d --name redis --restart always -p 6379:6379 -v /config/redis:/etc/redis -v /config/redis/data:/data redis:6.0.5 redis-server /etc/redis/redis.conf --requirepass "password" --appendonly yes ? 问题解决: wget unable to resolve host address? 摘要: wget:无法解析主机地址。这就能看出是DNS解析的问题。 执行命令:vim /etc/resolv.conf 修改内容为下 ? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |