redis

1、配置文件

# wget http://download.redis.io/releases/redis-5.0.7.tar.gz
# tar xf redis-5.0.7.tar.gz
# cp redis-5.0.7/redis.conf   /opt/redis 
# vim redis.comf
  bind 192.168.1.38
  protected-mode no
  port 6379
  pidfile  /data/redis_6379.pid
  logfile "/data/redis_6379.log"
  requirepass 123456
  appendonly yes

2、docker 启动 

# docker run -d --name 'redis' -p 6379:6379 -v /opt/redis:/data redis:5.0.7 redis-server /data/redis.conf

 

posted on 2022-11-22 14:23  五光十色  阅读(22)  评论(0编辑  收藏  举报

导航