系统 centos centos 6.3  64位最小安装

一 安装CTL 8.5以上版本

wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz

tar zxvf tcl8.6.1-src.tar.gz

cd tcl8.6.1

cd unix

./configure

make

make install

二 安装redis

wget http://redis.googlecode.com/files/redis-2.6.14.tar.gz

tar zxvf redis-2.6.14.tar.gz

cd redis-2.6.14

make

cp redis.conf /etc/

make test

install

三 修改redis的配置文件

vim /etc/redis.conf

daemonize no改为 daemonize yes  #以守护进程方式运行

appendonly为yes  #指定是否在每次更新操作后进行日志记录

dir ./ redis  #改为dir /usr/local/(redis安装的根目录)

四 启动redis

/usr/local/bin/redis-server /etc/redis.conf

echo "/usr/local/bin/redis-server /etc/redis.conf" >> /etc/rc.local #添加开机启动redis

redis的学习

向前辈学习:!!