先随手记录一下,后面再进行完善
docker run --restart=always -p 6379:6379 -d -v /close/redis/conf/redis.conf:/usr/local/etc/redis/redis.conf --name redis redis redis-server /usr/local/etc/redis/redis.conf
其中redis.config是挂在到外面的目录,自行复制
先随手记录一下,后面再进行完善
docker run --restart=always -p 6379:6379 -d -v /close/redis/conf/redis.conf:/usr/local/etc/redis/redis.conf --name redis redis redis-server /usr/local/etc/redis/redis.conf
其中redis.config是挂在到外面的目录,自行复制