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
标签:5.0,tar,redis,gz,6379,data From: https://www.cnblogs.com/wuhg/p/16915016.html