redis的安装

//获取redis压缩包
wget http://download.redis.io/releases/redis-3.2.9.tar.gz
//解压
tar xzf redis-3.2.9.tar.gz
//进入解压后的文件夹
cd redis-3.2.9
make
make PREFIX=/usr/local/redis install
cp redis.conf  /usr/local/redis/
//启动
cd /usr/local/redis
//配置redis.conf
vim redis.conf
//修改redis.conf中将no 改为yes
daemonize yes
//启动redis服务端
./bin/redis-server ./redis.conf
//启动redis的客户端
./bin/redis-cli

你可能感兴趣的:(redis的安装)