Redis一:インストール編

2923 ワード

1.    ,    + centos6.5



PS::       yum    



   :  



mkdir /usr/redis   redis  

cd /usr/redis     

wget http://download.redis.io/releases/redis-2.8.13.tar.gz   2.8.13   

PS::  wget      ,   yum install wget

tar zxf redis-2.8.13.tar.gz   

cd redis-2.8.13.tar.gz     

make   

PS::    make  ,   yum install gcc,tcl

make install     

make test     

   :  



cp /usr/redis/redis-2.8.13.tar.gz/utils/redis_init_script /etc/init.d/redis_6379

mkdir /etc/redis

mkdir /etc/redis/6379

cp /usr/redis/redis-2.8.13.tar.gz/redis.conf /etc/redis/6379.conf

=================================================================

vim 6379.conf

PS::    vim     ,   vi  

      :

daemonize yes

pidfile /var/run/redis_6379.pid

port 6379

dir /etc/redis/6379

=================================================================/etc/init.d/redis_6379 start