当前位置:网站首页>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.
边栏推荐
- [OC study notes] attribute keyword
- 17.机器学习系统的设计
- LayaBox---TypeScript---类型推论
- C陷阱与缺陷 第6章 预处理器 6.2 宏并不是函数
- [Solved] The problem that Unity Hub fails to obtain a license or does not respond and cannot develop
- 软件测试13年从业经验的前辈,总结的5条测试就业建议....
- PLSQL Developer安装和配置
- 【HMS Core】【FAQ】运动健康、音频编辑、华为帐号服务 典型问题合集7
- C陷阱与缺陷 第6章 预处理器 6.4 宏并不是类型定义
- 数据库系统原理与应用教程(065)—— MySQL 练习题:操作题 62-70(九):分组查询与子查询
猜你喜欢
随机推荐
Leetcode数据库系列题解合集(持续更新)
【HarmonyOS】【FAQ】鸿蒙问题合集4
reporter undercover
Application of time series database in the field of ship risk management
高级语言垃圾回收思路和如何减少性能影响原理分析
信息学奥赛一本通 1915:【01NOIP普及组】最大公约数与最小公倍数 | 洛谷 P1029 [NOIP2001 普及组] 最大公约数和最小公倍数问题
Test the.net text to Speech module System. Researched
【HMS core】【ML Kit】机器学习服务常见问题FAQ(二)
习题:变量、常量和基本数据类型
LayaBox---TypeScript---函数
X射线的应用是什么?
Mysql brush dirty several scenarios and related parameters
What is an ultrasonic flaw detector used for?
PLSQL Developer安装和配置
公司部门来了个00后测试卷王之王,老油条表示真干不过,已经...
轻量级网络 ESPNetv2
C陷阱与缺陷 第6章 预处理器 6.2 宏并不是函数
Linux-安装MySQL(详细教程)
linux 下MySQL本地安装mysql - u root - p 无法登入
C陷阱与缺陷 第6章 预处理器 6.4 宏并不是类型定义









