当前位置:网站首页>Redis for infrastructure
Redis for infrastructure
2022-07-30 18:01:00 【Microservice Evangelist】
In the process of project development, some information has a very low frequency of change but is frequently accessed. We often store this information in the cache. Currently, Redis is definitely worth your use plan in the cache component.For more details, please refer to the official website https://redis.io/.This article is mainly about quick setup and easy use.
(1) Environmental requirements
- Centos 7.5.1804
- Docker 18.06.1-ce
- Redis: latest
Mainly share low code, microservices, containersa>The content of the content, SAAS, and system architecture, I hope everyone likes, comments, and pays attention.
(2) Installation settings
- Image acquisition
a) First execute docker pull redis to obtain the redis image file. Depending on your network environment, it will take a while to download it. Then you can use docker images | grep redis to view the downloaded redis image.
- Service Installation
a) The default port of Redis is 6379. If you want to modify the default port, you can specify the port number you want to modify in the command to create the container and execute
docker run -p 6379:6379 -v $PWD/data:/data -d redis redis-server --appendonly yesCommand to create a redis service. If 6379 is already occupied by other programs, change it to an unoccupied port number and execute
docker ps|grep redisYou can see the following information, indicating that the service has been started.

- Client Link and Test
a) Install the client
We use the Redis client link test, if the client is not installed, click to downloadhttps://pan.baidu.com/s/1Fls2eI_uf6sXYkr4jsFFyA, install.Then open the effect as follows

b) Links
Click the link to the Redis server to open the link and the new Redis editing window is as follows,

The name can be entered as you like, the address is the ip installed by our redis service or domain name, the port is generally the default port 6379. If you have modified the default port, fill in your modified port interface. I have not enabled the security policy here. If it is enabled, please fill in the actual setting information. Finally, click Test Connection, if the information is verifiedIf passed, a message indicating that the connection to the Redis server is successful will pop up.

c) Test
Click the link we just created to see the list of DBs as shown below. Feel free to click the plus sign near one of the DBs.

The Key-Value window pops up as follows, enter the key name, Value type and Value, and then click Save, so that we have created a simple KV cache item.
Mainly share low-code, microservices, containerization, SAAS, and system architecture.
边栏推荐
- Confluence OGNL注入漏洞复现(CVE-2022-26134)
- 【HMS core】【Analytics Kit】【FAQ】如何解决华为分析付费分析中付款金额显示为0的问题?
- 【HMS Core】【FAQ】运动健康、音频编辑、华为帐号服务 典型问题合集7
- Moralis去中心化Web3应用开发教程
- Servo System of Hydraulic Steering Gear Based on Fuzzy PID
- PyTorch 猫狗分类源代码及数据集
- 数据库系统原理与应用教程(064)—— MySQL 练习题:操作题 51-61(八):查询条件的构造、通配符
- LayaBox---TypeScript---基础数据类型
- 5 个开源的 Rust Web 开发框架,你选择哪个?
- 网络基础(三)01-网络的基础概念——URL地址组成之协议、主机地址、路径和参数&127.0.0.1本地回环地址& 查看网址IP地址并访问之ping空格+网址&netstat -anb查看本机占用端口
猜你喜欢

知识蒸馏2:目标检测中的知识蒸馏

轻量级网络 ESPNetv2

Prometheus 基本概念

【HMS core】【FAQ】Account Kit、MDM能力、push Kit典型问题合集6

2022年杭电多校第2场 1001 Static Query on Tree(树链剖分+哈希表差分

ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)Solution

DevEco Studio3.0下载失败,提示An unknown error occurred

「Redis应用与深度实践笔记」,深得行业人的心,这还不来看看?

Dodging ice cream assassins?Crawling ice cream prices through crawlers

银行适用:此文能够突破你的运维流程管理问题
随机推荐
ESP8266-Arduino编程实例-BMP180气压温度传感器驱动
Servo System of Hydraulic Steering Gear Based on Fuzzy PID
CMake library search function does not search LD_LIBRARY_PATH
原生js系列
X射线的应用是什么?
一个 15 年 SAP ABAP 开发人员分享的 SAPGUI 一些个性化设置和实用小技巧试读版
多年以后「PageHelper」又深深的给我上了一课
如何让 JOIN 跑得更快?
知识蒸馏2:目标检测中的知识蒸馏
linux 安装mysql8.0 超详细教程(实战多次)
习题:变量、常量和基本数据类型
PLSQL Developer安装和配置
5分钟搞懂MySQL - 行转列
un7.30:Linux——如何在docker容器中显示MySQL的中文字符?
Logback的使用
This year..I sincerely recommend the professional engineer to upgrade to the book!
What ARC does at compile time and runtime
知识蒸馏4:准备数据集并修改网络配置
【牛客编程题】GO语言入门46题
基于b/s架构搭建一个支持多路摄像头的实时处理系统 ---- 使用yolo v5 系列模型