首先将压缩包放到 /root目录下
cd /usr/local
mkdir redis
cp /root/redis/redis-3.0.0.tar.gz ./ 复制压缩包到当前目录下
make 进行编译
make install PREFIX='/usr/local/redis/6379' 进行安装
cd bin
./redis-server
这就成功了
方便开启redis
cd /usr/local/redis/redis-3.0.0
redis.conf /usr/local/redis/6379/bin/
cd /usr/local/redis/6379/bin
vi redis.conf
./redis-server redis.conf 运行
ps -ef|grep redis 查看