下载redis
wget http://download.redis.io/releases/redis-2.8.3.tar.gz
tar zxf redis-2.8.3.tar.gz
cd redis-2.8.3
make
midir /usr/redis
cp src/redis-server /usr/redis/
cp src/redis-benchmark /usr/redis/
cp src/redis-cli /usr/redis/
cp redis.conf /usr/redis/
cd /usr/redis
启动服务
./redis-server redis.conf
客户端连接服务
cd /usr/redis
./redis-cli
127.0.0.1:6379> set feng zhan
OK
127.0.0.1:6379> get feng
"zhan"
完成!
时间: 2024-10-10 00:08:37