Redis Cluster 셈플링 좀 하다보니 Cluster 기능이 Ruby 기반으로 작동하고 있네..


Ruby 를 안 해본 입장에서 설치 좀 해보려니 좀 삽질..


[환경]

CentoOs 5.9 64Bit


해당 환경에서 yum으로 설치해보니 ruby 1.8.5가 설치되는 것 같고, Gem이 포함되지 않은 버전이여서 Gem도 수동으로 설치하고.. 안되서 버전 이것저것 삽질을 하다가 RVM 발견..


아주 간단하게 설치..


[RVM 설치] http://rvm.io/

설명대로 설치

$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
$ \curl -sSL https://get.rvm.io | bash -s stable

[RUBY 설치]

$ rvm install 2.2.0

Gem 포함 설치


* Redis Cluster 구동해보려 하니 ruby 관련 redis가 필요하단다.


[RUBY Redis Lib 설치]

$ gem install redis


* /usr/bin/env: ruby: No such file or directory .. 없단다..

ruby 실행 파일을 /usr/bin/ruby 에 심볼릭 링크 걸어 해결

ln -s /usr/local/rvm/rubies/default/bin/ruby /usr/bin/ruby


Redis Cluster 실행 성공!!

+ Recent posts