1.下载Redis
wget http://download.redis.io/releases/redis-2.8.17.tar.gz
2.解压
tar zxvf redis-2.8.17.tar.gz
3.编译&安装
cd redis-2.8.17/ make install
4.Redis配置设置
vim /etc/redis.conf 将 daemonize 从 no 修改成 yes,运行为了守护进程。
5.启动
redis-server /etc/redis.conf
备注: 另外需要打开默认6379端口
修改: /etc/sysconfig/iptables
立即生效: service iptables restart
profile文件立即生效 source /etc/profile