반응형

Installing Redis on CentOS 5.6


sudo su
yum install make gcc wget telnet
tar -xf redis-2.2.12.tar.gz
cd redis-2.2.12
make && make install


mkdir /etc/redis /var/lib/redis
sed -e "s/^daemonize no$/daemonize yes/" -e "s/^dir \.\//dir \/var\/lib\/redis\//" -e "s/^loglevel debug$/loglevel notice/" -e "s/^logfile stdout$/logfile \/var\/log\/redis.log/" redis.conf > /etc/redis/redis.conf




wget https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
sed -i "s/usr\/local\/sbin\/redis/usr\/local\/bin\/redis/" redis-server
chmod u+x redis-server
mv redis-server /etc/init.d
/sbin/chkconfig --add redis-server
/sbin/chkconfig --level 345 redis-server on
/sbin/service redis-server start



To test your installation, run the following commands:

telnet 127.0.0.1 6379
set attitude:today "happy"
get attitude:today

[출처] Redis 설치 참조|작성자 


반응형

'연구개발 > Redis' 카테고리의 다른 글

Redis 서버 설정 정리  (0) 2016.01.07
NoSQL - Redis 통계정보, 성능 측정  (0) 2015.12.31
redis sorted_set 사용한 실시간 순위 구하기  (0) 2014.10.27
Redis 모니터링 - Redmon  (0) 2014.03.24
[Redis Monitoring] redis-stat  (0) 2014.03.24

+ Recent posts