Linux系统下安装:
cd /usr/local
wget http://download.redis.io/releases/redis-3.0.3.tar.gz
tar -xvf redis-3.0.3.tar.gz
cd redis-3.0.3
make
make install
修改/usr/local/redis-3.0.3目录下redis.conf文件中配置项:
daemonize yes(进程后台运行)
在/usr/local/redis-3.0.3目录下创建start启动脚本内容如下:
/usr/local/redis-3.0.3/src/redis-server /usr/local/redis-3.0.3/redis.conf
执行start脚本,查看redis是否启动成功
Windows系统下安装:
1、下载Windows版本Redis
https://github.com/MSOpenTech/redis/releases/download/win-2.8.2104/Redis-x64-2.8.2104.zip
2、解压Redis-x64-2.8.2104.zip并打开Redis-x64-2.8.2104目录,在目录下执行如下脚本完成安装
cd %~dp0
redis-server --service-install redis.windows.conf --loglevel verbose
net start Redis
@pause
3、执行net start redis启动服务