加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Redis系列(一):介绍、安装(Docker、Windows、Linux)

发布时间:2020-12-16 04:37:52 所属栏目:安全 来源:网络整理
导读:一.介绍 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,ge

一.介绍

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

?执行命令:??
mkdir config/redis/data
??
cd /config/redis

wget https://raw.githubusercontent.com/antirez/redis/6.0/redis.conf

?

?

?

执行命令: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

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

?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读