Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

Redis Install

More than 5 years have passed since last update.

Download

http://redis.io/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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away