redis指定目录安装+生成自启动

redis

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

cd redis-3.0.3

make

make test 

make PREFIX=/usr/local/redis install

mkdir -p /usr/local/redis/etc

cp redis.conf /usr/local/redis/etc/

mkdir /etc/redis​

ln -s /usr/local/redis/etc/redis.conf /etc/redis/6379.conf

cp redis_init_script /etc/init.d/redis

vi /etc/init.d/redis

在第二行加

#chkconfig: 2345 80 90

存后执行:

chkconfig --add redis

chkconfig redis on

mkdir /data/server_data/redis/logs -p

mkdir /data/server_data/redis/data -p


你可能感兴趣的:(redis指定目录安装+生成自启动)