본문 바로가기

Database/redis

1. redis 설치 & 실행

설치

$ wget http://download.redis.io/redis-stable.tar.gz

$ tar xvzf redis-stable.tar.gz

$ cd redis-stable

$ make install

 

실행 / 종료

# start

$ redis-stable/src/redis-server

# stop 

$ src/redis-cli shutdown

 

백그라운드 실행

redis.conf의 daemonize no → yes  옵션 변경 필요

$ grep "daemonize" redis.conf

daemonize yes

$ redis-stable/src/redis-server  redis-stable/redis.conf

 

redis 사용량 통계 프로그램

github.com/junegunn/redis-stat