Skip to content

Instantly share code, notes, and snippets.

@hongry18
Last active August 27, 2019 05:55
Show Gist options
  • Save hongry18/435b469bd03811bc90e3c702a824bda5 to your computer and use it in GitHub Desktop.
Save hongry18/435b469bd03811bc90e3c702a824bda5 to your computer and use it in GitHub Desktop.
redis.install.on.centos7.md

REDIS install guid on CentOS7 (minimal)

dependencies

yum -y install gcc gcc-c++ make tcl

redis

source

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

install

curl -O http://download.redis.io/redis-stable.tar.gz
tar xf redis-stable.tar.gz
cd redis-stable
make
make test
# '\o/ All tests passed without errors!' 메세지가 나온다면 성공
make install
make clean

gem install redis

ruby 2.6.3 install

! redis 5.x 부터는 redis-cli에서 --cluster 기능을 제공해서 ruby 설치 필요없음 gem으로 설치할 redis가 ruby 2.3.3 버전 이상을 요구

dependencies

'''shell yum -y install zlib-devel openssl-devel curl-devel '''

source

https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.3.tar.gz

install

curl -O https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.3.tar.gz
tar xf ruby-2.6.3.tar.gz
cd ruby-2.6.3
./configure --disable-install-doc
make
make test
make insatll
make clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment