usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from ./redis-trib.rb:25

redis创建集群时出一下错误

./redis-trib.rb create --replicas 1 172.16.220.151:6379 172.16.220.152:6379 172.16.220.153:6379 172.16.220.154:6379
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- redis (LoadError)
	from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from ./redis-trib.rb:25

解决方案

上传redis-3.0.0.gem
gem install redis-3.0.0.gem

你可能感兴趣的:(redis)