集群安装按着https://jingyan.baidu.com/article/922554465f7e19851648f4d4.html
安装就可以。
在执行 gem install redis可能会报错:
Fetching: redis-4.0.1.gem (100%)
ERROR: Error installing redis:
redis requires Ruby version >= 2.2.2.
要求Ruby 版本大于2.2.2 而linux支持我的版本是1.9.3
要升级Ruby:
yum install curl
curl -L get.rvm.io | bash -s stable
执行:
curl -L get.rvm.io | bash -s stable
的时候又尼玛报错:
NOTE: GPG version 2.1.17 have a bug which cause failures
during fetching keys from remote server. Please downgrade
second method described above.
执行:
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
如果没安装gnupg2 要先安装这个。
安装之后再执行:gem install redis
后集群安装成功。【如果不懂 坑真是多】