(1)参考连接
http://blog.csdn.net/kenkao/article/details/53419773
(2)解压
[root@xiaofeibao src]# tar zxf redis-3.2.0.tar.gz
[root@xiaofeibao src]# ll
总用量 2684
-rw-r--r--. 1 root root 1214744 8月 7 19:40 autoconf-2.69.tar.xz
drwxrwxr-x. 6 root root 4096 5月 6 2016 redis-3.2.0
-rw-r--r--. 1 root root 1525900 5月 6 2016 redis-3.2.0.tar.gz
(2.0)查看readme
[root@xiaofeibao redis-3.2.0]# more README.md
(2.1)
[root@xiaofeibao redis-3.2.0]# make
(2.2)安装
[root@xiaofeibao redis-3.2.0]# make PREFIX=/usr/local/redis install
Hint: It's a good idea to run 'make test' ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
[root@xiaofeibao src]# cd /usr/local
(2.3)复制:
[root@xiaofeibao redis]# cp /usr/local/src/redis-3.2.0/redis.conf .
cp:是否覆盖"./redis.conf"? yes
(3)查看redis进程
[root@xiaofeibao redis]# ps aux|grep redis
root 5716 0.0 0.0 103256 848 pts/0 S+ 00:54 0:00 grep redis
(4)开启redis服务:
[root@xiaofeibao redis]# ./bin/redis-server ./redis.conf
(5)客户端连接
[root@xiaofeibao redis]# ./bin/redis-cli
(6)重新启动虚拟机
[root@xiaofeibao redis]# shutdown -r now