ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~javascript docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...] ~~~ ``` docker pull redis wget http://download.redis.io/redis-stable/redis.conf mkdir /data/redis docker run -p 6379:6379 --name redis --restart=always -v /config/redis/redis.conf:/etc/redis/redis.conf -v /data/redis:/data -d redis redis-server /etc/redis/redis.conf --appendonly yes ``` -d: 后台运行,并返回容器ID redis:指定镜像 运行命令:redis redis-server /etc/redis/redis.conf --appendonly yes --restart always