创建redis集群报错 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load suc

错误详细如下:

/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- redis (LoadError)

from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'

from /usr/local/bin/redis-trib.rb:25:in `'

问题来源这个命令:

redis-trib.rb create --replicas 1 192.168.10.11:1001 192.168.10.11:1002  192.168.10.11:1003  192.168.10.11:1004  192.168.10.11:1005   192.168.10.11:1006

  解决方法如下 :

[root@10-13-165-107 redis]# gem install redis

安装redis库

你可能感兴趣的:(创建redis集群报错 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load suc)