当前位置:网站首页>Docker installation redis
Docker installation redis
2022-06-11 20:33:00 【cpuCode】
Docker install Redis
docker operation
https://blog.csdn.net/qq_44226094/article/details/120624387
install Redis
establish redis Profile directory
Create folder
mkdir -p /mydata/redis/conf
create profile
touch /mydata/redis/conf/redis.conf
Pull Redis Mirror image
docker pull redis
start-up Redis
- –name Specify container name
- -v Directory mount
- -p Specify port mapping
- -d Background operation
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
Set up AOF Persistence
vim /mydata/redis/conf/redis.conf
Insert AOF Persistence settings
appendonly yes
restart Redis
docker restart redis
Set up along with Docker Start autorun
docker update redis --restart=always
go in Redis client
docker exec -it redis redis-cli
边栏推荐
- Global Market Consulting - Research Report on the overall scale and application segmentation of the global HVDC converter station market in 2022
- Final examination of theory and practice of socialism with Chinese characteristics 1
- STC 纯硬件自动下载电路 V2
- Edit the project steps to run QT and opencv in the clion
- UDP、TCP
- Chinese text classification based on CNN
- Teach you how to grab ZigBee packets through cc2531 and parse encrypted ZigBee packets
- Summary of C language programming knowledge points 01
- 7905 and TL431 negative voltage regulator circuit - regulator and floating circuit relative to the positive pole of the power supply
- The first bullet of comparative learning
猜你喜欢

Flutter Doctor affiche les solutions que xcode n'a pas installées

moderlarts第一次培訓

29. location object

Windows icon display exception resolution. The desktop icon is abnormal, the start menu icon is abnormal, and the taskbar icon is abnormal. Icon cache location.

unity package manager starting server stuck(Unity啟動卡在starting server,然後報錯)

sql优化之DATE_FORMAT()函数

moderlarts第一次培训

A brief talk on shutter button

Chinese text classification based on CNN

周刊02|不瞒你说,我其实是MIT的学生
随机推荐
Wechat applet | rotation chart
moderlarts第一次培训
MySQL installation free configuration tutorial under Windows mysql-5.6.51-winx64 Zip version
Web3 product manager guide - Jason
The tutor transferred me 800 yuan and asked me to simulate a circuit (power supply design)
Recompile kubeadm to solve the problem of certificate expiration in one year
The input value "18-20000hz" is incorrect. The setting information is incomplete. Please select a company
Implement AOP and interface caching on WPF client
周刊02|不瞒你说,我其实是MIT的学生
浅谈UGUI中Canvas RectTransform的Scale
These postgraduate entrance examination majors are easy to be confused. If you make a mistake, you will take the exam in vain!
黑圆圈显示实现
Summary of C language programming knowledge points 01
2022-2028 current situation and future development trend of fuel cell market for cogeneration application in the world and China
Unity screenshot
Installation and performance test of Apache APIs IX on Amazon graviton3
Explanation of LNMP architecture source code compilation and installation with pictures and texts (with forum experiment)
STL container nested container
ubantu1804 两个opencv版本共存
里氏替换原则