79
81

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOSへのRedisインストールメモ

Posted at

CentOSなサーバーにRedisをインストールしたのでメモしておきます。参考サイト
参考: linux/redisインストール/redis2.6 - 初心者エンジニアの簡易メモ -

##インストール

$ wget http://download.redis.io/releases/redis-2.8.12.tar.gz
$ tar xzf redis-2.8.12.tar.gz
$ cd redis-2.8.12/
$ make
$ sudo make install

##設定
参考: redis 2.2.12のインストールメモ(amazon Linux) - developer's diary -

$ ls
00-RELEASENOTES  COPYING    Makefile  redis.conf        sentinel.conf  utils
BUGS             INSTALL    README    runtest           src
CONTRIBUTING     MANIFESTO  deps      runtest-sentinel  tests

#設定ファイルを /etc/に設置
$ sudo cp redis.conf /etc/

###設定ファイル編集

$ sudo vim /etc/redis.conf
#daemonize no
#↓
daemonize yes

#logfile ""
#↓
logfile /var/log/redis.log

##起動

#先程作った設定ファイルを指定して起動
$ redis-server /etc/redis.conf

#動作確認
$ redis-cli
127.0.0.1:6379> set name n0bisuke
OK
127.0.0.1:6379> get name
"n0bisuke"
79
81
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
79
81

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?