当前位置:网站首页>Docker installation redis- simple without pit
Docker installation redis- simple without pit
2022-06-24 23:01:00 【Bald and weak.】
1. Switch root user
2. Download the image file
docker pull redis
3. Create an instance and start
mkdir -p /mydata/redis/conf
touch /mydata/redis/conf/redis.conf
docker run -p 6379:6379 --name redis -v /mydata/redis/data:/data \
-v /mydata/redis/conf/redis.conf:/etc/redis/redis.conf \
-d redis redis-server /etc/redis/redis.conf
4.redis Profile detailed configuration ( Modify yourself )
https://raw.githubusercontent.com/antirez/redis/4.0/redis.conf
Want to modify the configuration file , modify linux The host /mydata/redis/conf/redis.conf that will do
5. Use redis Mirrored execution redis-cli Command connection
docker exec -it redis redis-cli
边栏推荐
- Do you need to improve your code reading ability? It's a trick
- The usage difference between isempty and isblank is so different that so many people can't answer it
- Tetris
- Problem solving - nested lists
- vulnhub DC: 2
- Database transaction Transanction
- 详细了解Redis的八种数据类型及应用场景分析
- Learn more about redis' eight data types and application scenario analysis
- Code farmers should also understand the IPv4 subnet division of point networks
- find your present (2)
猜你喜欢

详细了解关于sentinel的实际应用

Panorama of enterprise power in China SSD industry

vulnhub Vegeta: 1

Row and column differences in matrix construction of DX HLSL and GL glsl

Learn more about the practical application of sentinel
Based on the codeless platform, users deeply participated in the construction, and digital data + Nanjing Fiberglass Institute jointly built a national smart laboratory solution

shopee开店入驻流水如何提交?

JWT(Json Web Token)

docker安装mysql-简单无坑

What kind of processor architecture is ARM architecture?
随机推荐
Web security XSS foundation 06
Common sense of resolution
Learn more about the practical application of sentinel
2022-06-10 work record --js- obtain the date n days after a certain date
Envoy obtain the real IP address of the client
Feign project construction
Problem solving - nested lists
机器学习编译入门课程学习笔记第一讲 机器学习编译概述
2022年高处安装、维护、拆除考试模拟100题及模拟考试
Solution to the login error of tangdou people
Leetcode algorithm refers to offer II 027 Palindrome linked list
LeetCode Algorithm 剑指 Offer II 027. 回文链表
【nvm】
2022-06-16 work record --js- judge the number of digits in string type digits + judge the number of digits in numeric type digits + limit the text length (display n words at most, exceeding...)
JWT(Json Web Token)
2022年安全员-A证考题及答案
C language operators and expressions
EPICS record Reference 3 - - field available for all Records
A big factory interview must ask: how to solve the problem of TCP reliable transmission? 8 pictures for you to learn in detail
2022 safety officer-a certificate examination questions and answers