切换到宽版
  • 4579Read
  • 0Replay

Centos 6 x86 Install Redis [复制链接]

上一主题 下一主题
离线Francis
 

只看楼主 倒序阅读 使用道具 楼主  posttime: 2017-03-17
— 本帖被 admin 从 Linux--Ubuntu/Git 移动到本区(2017-11-07) —
Linux Redis Install
http://www.th7.cn/system/lin/201605/166771.shtml
http://www.cnblogs.com/goodspeed/archive/2012/10/18/2729615.html

make test  WARNING
https://zhidao.baidu.com/question/1990590820474912467.html
https://github.com/antirez/redis/issues/3099
https://github.com/antirez/redis/issues/2814

1. wget and make

mkdir redis
cd redis
wget http://download.redis.io/releases/redis-3.2.1.tar.gz
tar xzf redis-3.2.1.tar.gz
cd redis-3.2.1
make
make test
#make install
yum install tcl

2. copy

mkdir /etc/redis
cp redis-server /etc/redis
cp redis-benchmark /etc/redis
cp redis-cli /etc/rediscd
cd ../
cp redis.conf /etc/rediscd /etc/redis

3. set the init.d
cp redis-3.2.0/utils/redis_init_script /etc/rc.d/init.d/redis
cd  /etc/rc.d/init.d/
vim redis
Line 2 :
        #chkconfig: 2345 80 90
Line7 :    
        EXEC=/etc/redis/redis-server
Line 8 :
        CLIEXEC=/etc/redis/redis-cli
Line 20 :
        $EXEC $CONF &        
cp /etc/redis/redis.conf /etc/redis/6379.conf

4. start
chkconfig --add redis
service redis start








快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个