搭建redis集群为什么要安装ruby环境

Python020

搭建redis集群为什么要安装ruby环境,第1张

安装redis集群需要版本号在3.0以上

redis-cluster安装前需要安装ruby环境

搭建集群需要使用到官方提供的ruby脚本。

需要安装ruby的环境。

yum -y install ruby

yum -y install rubygems

redis集群管理工具redis-trib.rb

[root@bogon ~]# cd redis-3.0.0

[root@bogon redis-3.0.0]# cd src

[root@bogon src]# ll *.rb

-rwxrwxr-x.1 root root 48141 Apr 1 07:01 redis-trib.rb

脚本需要的ruby包:redis-3.0.0.gem

安装 gem install redis-3.0.0.gem

[root@bogon ~]# gem install redis-3.0.0.gem

Successfully installed redis-3.0.0

1 gem installed

Installing ri documentation forredis-3.0.0...

Installing RDoc documentation forredis-3.0.0...

集群的搭建

需求,创建6台redis服务器,虚拟机模拟端口号为7001-7006

第二步:修改redis的配置文件

1、修改端口号

第三步:把创建集群的ruby脚本复制到redis-cluster目录下。

第四步:启动6个redis实例

第五步:创建集群。

ruby的汉语意思如下:

n.

红宝石深红色。

adj.

红宝石的红宝石色的。

ruby的读音是:英 [ˈruːbi]   美 [ˈruːbi] 。

ruby的造句如下:

1、RDT is a far more full-featured Ruby IDE with a ton of exciting and time-saving options.

RDT是一个功能更为完善的Ruby开发环境,具备许多令人兴奋并且可以节省大量开发时间的选项。

2、Rich ruby color with tastes of black cherry, full plum and soft vanilla and toffee notes.

酒体呈漂亮的宝石红色,富含蓝莓和熟李子的果香,以及优雅的香草及太妃糖香气。

3、Download and install Ruby libraries easily.

容易地下载和安装ruby库。

4、Tasting notes: A bright ruby red colour with attractive purple hues.

品酿笔记:酒泽如红宝石般明亮动人,但又透露著 * 紫色于其中。

5、Deep ruby coloured with purple reflections in the first years and tending to orange when older.

深宝石红,年轻时泛紫色边缘,随着时间变化会慢慢转成橘黄色。

6、The origin of Ruby Fall.

红宝石瀑布的起源.