博客园不常在线

有问题联系微信

微信号

微信公众号

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

 执行命令:  
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域名服务器

 

posted @   Code技术分享  阅读(410)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示