【nebula graph】RPM离线搭建nebula graph集群

一、部署方案

主机名graphd 进程数量storaged 进程数量metad 进程数量
master111
slaves1111
slaves2111

二、下载rpm安装包,并copy到三台主机同一位置

wget https://oss-cdn.nebula-graph.com.cn/package/nightly/2021.11.24/nebula-graph-2021.11.24-nightly.el7.x86_64.rpm

三、安装rpm,三台主机都执行

rpm -ivh nebula-graph-3.0.2.el7.x86_64.rpm --prefix=/opt/softWare/nebulaGraph

--prefix:代表安装位置配置;

四、配置

        配置文件在安装目录下的etc文件夹下;

1、master配置

nebula-metad.conf

########## networking ##########
# Comma separated Meta Server addresses
--meta_server_addrs=master:9559,slaves1:9559,slaves2:9559
# Local IP used to identify the nebula-metad process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=master
# Meta daemon listening port
--port=9559

nebula-storaged.conf

########## networking ##########
# Comma separated Meta server addresses
--meta_server_addrs=master:9559,slaves1:9559,slaves2:9559
# Local IP used to identify the nebula-storaged process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=master
# Storage daemon listening port
--port=9779

nebula-graphd.conf

########## networking ##########
# Comma separated Meta Server Addresses
--meta_server_addrs=master:9559,slaves1:9559,slaves2:9559
# Local IP used to identify the nebula-graphd process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=master
# Network device to listen on
--listen_netdev=any
# Port to listen on
--port=9669

2、slaves1配置

nebula-metad.conf

########## networking ##########
# Comma separated Meta Server addresses
--meta_server_addrs=master:9559,slaves1:9559,slaves2:9559
# Local IP used to identify the nebula-metad process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=slaves1
# Meta daemon listening port
--port=9559

nebula-storaged.conf

########## networking ##########
# Comma separated Meta server addresses
--meta_server_addrs=master:9559,slaves1:9559,slaves2:9559
# Local IP used to identify the nebula-storaged process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=slaves1
# Storage daemon listening port
--port=9779

nebula-graphd.conf

########## networking ##########
# Comma separated Meta Server Addresses
--meta_server_addrs=master:9559,slaves1:9559,slaves2:9559
# Local IP used to identify the nebula-graphd process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=slaves1
# Network device to listen on
--listen_netdev=any
# Port to listen on
--port=9669

3、slaves2配置

nebula-metad.conf


########## networking ##########
# Comma separated Meta Server addresses
--meta_server_addrs=master:9559,slaves1:9559,slaves2:9559
# Local IP used to identify the nebula-metad process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=slaves2
# Meta daemon listening port
--port=9559

nebula-storaged.conf

########## networking ##########
# Comma separated Meta server addresses
--meta_server_addrs=master:9559,slaves1:9559,slaves2:9559
# Local IP used to identify the nebula-storaged process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=slaves2
# Storage daemon listening port
--port=9779

nebula-graphd.conf 

########## networking ##########
# Comma separated Meta Server Addresses
--meta_server_addrs=master:9559,slaves1:9559,slaves2:9559
# Local IP used to identify the nebula-graphd process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=slaves2
# Network device to listen on
--listen_netdev=any
# Port to listen on
--port=9669

五、启动集群

首先进入script目录;

master/slaves1:

[root@master scripts]# ./nebula.service start all

slaves2:

[root@slaves2 scripts]# ./nebula.service start storaged

[root@slaves2 scripts]# ./nebula.service start graphd

六、进程查看

master:

slaves1:

 slaves2:

 七、客户端连接

1、下载客户端

Releases · vesoft-inc/nebula-console · GitHub

2、将下载的文件重命名为nebula-console,并分别放到三台主机安装目录的bin下,并赋予如下权限:chmod a+x nebula-console

3、在任意一台主机连接

[root@master bin]# ./nebula-console --addr master --port 9669 -u root -p nebula

Welcome to Nebula Graph!

(root@nebula) [(none)]>
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

郝少

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值