1.Redis安装 cd wget http://download.redis.io/releases/redis-4.0.2.tar.gz tar xzf redis-4.0.2.tar.gz mv redis-4.0.2 /usr/local/redis-4.0.2 cd /usr/local/redis-4.0.2 make make install redis-server redis.conf redis-cli ps -ef | grep redis
2.Docker使用Redis官方镜像 docker version docker pull redis docker run --name payredis -d redis docker run --rm -it --link payredis:redis redis /bin/bash redis-cli -h redis -p 6379 ./redis-cli -p 6379 shutdown (责任编辑:IT) |