一、linux下安装
1、下载 wget http://download.redis.io/releases/redis-3.0.7.tar.gz
2、解压 tar -xvf redis-3.0.7.tar.gz
3、编译 make
4、安装 make install
查看src下的redis脚本

二、启动三种方式
1、直接启动
redis-3.0.7/src/redis-server
2、通过配置项启动
redis-server --port 6380
3、通过配置文件启动
复制redis的默认配置文件redis.conf
[root@localhost redis]# mkdir config
[root@localhost redis]# cp redis.conf config/
通过配置文件重启
[root@localhost redis]# redis-server config/redis.conf