当前位置:网站首页>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边栏推荐
- I2C 子系统(三):I2C Driver
- 内存泄漏工具VLD安装及使用
- I2C 子系统(四):I2C debug
- sql server 查询指定表的表结构
- [principles of multithreading and high concurrency: 1_cpu multi-level cache model]
- [translation] the background project has joined the CNCF incubator
- SQL server queries the table structure of the specified table
- Add MDF database file to SQL Server database, and the error is reported
- Opengauss database development and debugging tool guide
- Kubernetes cluster log and efk architecture log scheme
猜你喜欢

I2C subsystem (IV): I2C debug

Kubernetes family container housekeeper pod online Q & A?

Add automatic model generation function to hade

Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)

超好用的日志库 logzero

Joking about Domain Driven Design (III) -- Dilemma

Practice of traffic recording and playback in vivo

Matlab tips (24) RBF, GRNN, PNN neural network

HW initial preparation

Classes and objects - initialization and cleanup of objects - constructor call rules
随机推荐
As a leader, how to control the code version and demand development when the epidemic comes| Community essay solicitation
How to implement append in tensor
销毁Session和清空指定的属性
Sqlserver row to column pivot
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc
HW initial preparation
Cancer biopsy instruments and kits - market status and future development trends
[fluent] future asynchronous programming (introduction | then method | exception capture | async, await keywords | whencomplete method | timeout method)
Check log4j problems using stain analysis
How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
tensorflow转pytorch笔记;tf.gather_nd(x,y)转pytorch
The Linux server needs to install the agent software EPS (agent) database
Check log4j problems using stain analysis
Force freeing memory in PHP
Baidu map - surrounding search
Why choose a frame? What frame to choose
Pytest (6) -fixture (Firmware)
Practice of traffic recording and playback in vivo
Three.js本地环境搭建
Sous - système I2C (IV): débogage I2C