LoginSignup
5
5

More than 5 years have passed since last update.

Redis Install

Last updated at Posted at 2014-10-05

Download

cd /usr/local/src
wget http://redis.googlecode.com/files/redis-2.6.9.tar.gz
tar zxvf redis-2.6.9.tar.gz
cd redis-2.6.9
make test
make
make install

make testで下記エラーが出たら

You need 'tclsh8.5' in order to run the Redis test
yum install -y tcl

Config

mkdir /etc/redis
cp redis.conf /etc/redis/redis_6379.conf
vi /etc/redis/redis_6379.conf

#デーモンとして起動する。
#daemonize no
daemonize yes

#使用するメモリサイズ
#maxmemory
maxmemory  10240000

#working dir変更
#dir ./
dir /etc/redis/

# 起動スクリプトと同じ ファイル名に変更
# pidfile /var/run/redis.pid
pidfile /var/run/redis_6379.pid

Deamon

cp utils/redis_init_script /etc/init.d/redis

vi /etc/init.d/redis

# 追加
# chkconfig:   - 85 15
# description:  redis-server
# processname: redis
chkconfig --add redis
chkconfig redis on

参考:
http://www.seeds-std.co.jp/seedsblog/792.html
http://redis.io/topics/quickstart

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5