链接:
https://pan.baidu.com/s/1f5xW2d18vSHHhpz3KsZIHA
提取码:gpf7
链接:
https://pan.baidu.com/s/1gqe_M1fKQtIAT5BaNhj2BQ
提取码:utar
下载地址:
https://download.redis.io/releases/
[root@localhost ~]# ifconfig
[root@localhost data]# cd program/
[root@localhost program]# ls
redis-3.2.11.tar.gz
[root@localhost program]# tar -zxvf redis-3.2.11.tar.gz
redis-3.2.11/
redis-3.2.11/.gitignore
[root@localhost program]# cd redis-3.2.11
[root@localhost redis-3.2.11]# ls
00-RELEASENOTES CONTRIBUTING deps Makefile README.md runtest runtest-sentinel srcutils
BUGS COPYING INSTALL MANIFESTO redis.conf runtest-cluster sentinel.conf tests
[root@localhost redis-3.2.11]# make
[root@localhost redis-3.2.11]# make test
出现这段文字说明测试通过
o/ All tests passed without errors!
[root@localhost program]# mkdir redis
[root@localhost program]# cd redis-3.2.11
[root@localhost redis-3.2.11]# make install PREFIX=/whm/data/program/redis
安装完成后会有以下文件
[root@localhost redis-3.2.11]# cd ../redis
[root@localhost redis]# ls bin/
redis-benchmark redis-check-aof redis-check-rdb redis-cli redis-sentinel redis-server
[root@localhost redis-3.2.11]# cp redis.conf ../redis/redis.conf
[root@localhost redis-3.2.11]# cd ../redis
[root@localhost redis]# ls
bin redis.conf
[root@localhost redis]# cd bin/
[root@localhost bin]# ./redis-server ../redis.conf
将 redis.conf 的daemonize参数设置为yes
[root@localhost bin]# vim ../redis.conf
配置完后启动redis
[root@localhost bin]# ./redis-server ../redis.conf
[root@localhost bin]# ./redis-cli shutdown
到这里Redis就安装完成了