当前位置:网站首页>Docker install redis
Docker install redis
2022-07-03 02:57:00 【Play code】
1. Download the official website image
docker pull redis2. establish redis Contents and conf file
cd /mydata/
mkdir redis
mkdir redis/conf
touch /mydata/redis/conf/redis.conf3. edit redis.conf file
vi redis.conf
# Add the following
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1 ::1
#bind 127.0.0.1
protected-mode no
port 6379
tcp-backlog 511
requirepass 000415
timeout 0
tcp-keepalive 300
daemonize no
supervised no
pidfile /var/run/redis_6379.pid
loglevel notice
logfile ""
databases 30
always-show-logo yes
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir ./
replica-serve-stale-data yes
replica-read-only yes
repl-diskless-sync no
repl-disable-tcp-nodelay no
replica-priority 100
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
replica-lazy-flush no
appendonly yes
appendfilename "appendonly.aof"
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
lua-time-limit 5000
slowlog-max-len 128
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
stream-node-max-bytes 4096
stream-node-max-entries 100
activerehashing yes
hz 10
dynamic-hz yes
aof-rewrite-incremental-fsync yes
rdb-save-incremental-fsync yes
4. start-up redis
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.conf5. see redis
docker ps
6. Get into redis client
docker exec -it redis redis-cli边栏推荐
- Opengauss database development and debugging tool guide
- Installation and use of memory leak tool VLD
- The left value and the right finger explain better
- Source code analysis | layout file loading process
- Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!
- Interview stereotyped version
- JS finds all the parent nodes or child nodes under a node according to the tree structure
- Linear rectification function relu and its variants in deep learning activation function
- Check log4j problems using stain analysis
- SQL statement
猜你喜欢

Check log4j problems using stain analysis

sql server数据库添加 mdf数据库文件,遇到的报错

I2C subsystem (I): I2C spec

A2L file parsing based on CAN bus (2)

一文带你了解 ZigBee

I2C 子系統(四):I2C debug

I2C 子系统(四):I2C debug

Deep Reinforcement Learning for Intelligent Transportation Systems: A Survey 论文阅读笔记
![[translation] the background project has joined the CNCF incubator](/img/0b/e3d2674b1a1cba3ea398cbcb1a018a.png)
[translation] the background project has joined the CNCF incubator

Pytest (6) -fixture (Firmware)
随机推荐
HW-初始准备
复选框的使用:全选,全不选,选一部分
I2C 子系统(二):I3C spec
Can netstat still play like this?
Introduction to cron expression
Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 2)
HTB-Devel
Chart. JS multitooltip tag - chart js multiTooltip labels
Your family must be very poor if you fight like this!
Baidu map - surrounding search
TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制
docker安装redis
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]
用docker 连接mysql的过程
[Fuhan 6630 encodes and stores videos, and uses RTSP server and timestamp synchronization to realize VLC viewing videos]
Serious security vulnerabilities reported by moxa mxview network management software
[translation] the background project has joined the CNCF incubator
后管中编辑与预览获取表单的值写法
Practice of traffic recording and playback in vivo
Installation and use of memory leak tool VLD