linux学习笔记之安装redis3.2

这里我把Redis放在/home/imix/tools/下,所以在该目录下执行下列命令:

官网下载地址:https://redis.io/download
[root@localhost tools]#tar -xzf redis-3.2.10.tar.gz
[root@localhost tools]# cd redis-3.2.10
[root@localhost redis-3.2.10]# make
此处由于虚拟机未安装gcc,报错,错误信息参考http://lintaozhou.iteye.com/blog/2393164
安装完成后启动redis
[root@localhost redis-3.2.10]#cd src
[root@localhost redis-3.2.10]#./redis-server ../redis.conf

 出现一下界面,启动成功!

修改配置文件,让redis在后台运行 ,将daemonize属性改为yes(表明需要在后台运行)

[root@localhost redis-3.2.10]#vi  redis.conf
 

猜你喜欢

转载自lintaozhou.iteye.com/blog/2393167