linux安装nebula

2024-09-02 07:18
文章标签 linux 安装 nebula

本文主要是介绍linux安装nebula,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

1. nebula前置条件

$ yum update
$ yum install -y make \m4 \git \wget \unzip \xz \readline-devel \ncurses-devel \zlib-devel \gcc \gcc-c++ \cmake \gettext \curl \redhat-lsb-core \bzip2

2.下载rpm

https://nebula-graph.com.cn/download/选择合适的版本下载

http://oss-cdn.nebula-graph.com.cn/package/2.0.1/nebula-graph-2.0.1.el7.x86_64.rpm?response-content-type=application/octet-stream

3. 安装rpm

sudo rpm -ivh --prefix=/usr/local/nebula nebula-graph-2.0.1.el7.x86_64.rpm

4.启动

sudo /usr/local/nebula/scripts/nebula.service start all

查看启动状态

sudo /usr/local/nebula/scripts/nebula.service status all

5. 下载Nebula Graph Studio

http://oss-cdn.nebula-graph.com.cn/nebula-graph-studio/2.2.1/nebula-graph-studio-2.2.1-7.x86_64.rpm?response-content-type=application/octet-stream

6. 启动studio

使用的 Linux 发行版为 CentOS ,安装有 lsof 和版本为 v10.16.0 + 以上的 Node.js。

需要安装nodejs

bash /usr/local/nebula-graph-studio/scripts/start.sh

参考https://docs.nebula-graph.com.cn/2.0.1/2.quick-start/5.start-stop-service/

7.集群搭建

https://blog.csdn.net/weixin_44674220/article/details/116659708

8.相关命令查询

sudo scripts/nebula.service -help

Usage: scripts/nebula.service [-v] [-c /path/to/config] <start|stop|restart|status|kill> <metad|graphd|storaged|all>

9.安装nebula-graph-dashboard-1.0.0-1.x86_64.tar.gz

wget https://oss-cdn.nebula-graph.com.cn/nebula-graph-dashboard/nebula-graph-dashboard-1.0.0-1.x86_64.tar.gz
tar -xvf nebula-graph-dashboard-1.0.0-1.x86_64.tar.gz

转载

0. 三台装有CentOS7.8系统的虚拟机,IP如下:

192.168.80.128 # master
192.168.80.129 # slav1
192.168.80.130 # slav2
1. 在三台机器上安装nebula graoh 2.0.0

wget https://oss-cdn.nebula-graph.com.cn/package/2.0.0/nebula-graph-2.0.0.el7.x86_64.rpm
1
2. 安装 默认安装路径/usr/local/nebula

sudo rpm -ivh --prefix=/usr/local/nebula nebula-graph-2.0.0.el7.x86_64.rpm
1
3. 进入配置文件目录,修改权限

cd /usr/local
sudo chown -R syy:syy nebula
cd nebula/etc
1
2
3
4. 配置nebula-metad.conf
修改meta_server_addrs和local_ip两个字段,其他使用默认字段

########## networking ##########
# Comma separated Meta Server addresses
--meta_server_addrs=192.168.80.128:9559,192.168.80.129:9559,192.168.80.130: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=192.168.80.128
# Meta daemon listening port
--port=9559
1
2
3
4
5
6
7
8
9
5. 修改配置文件nebula-graphd.conf
修改meta_server_addrs和local_ip两个字段,其他使用默认字段

########## networking ##########
# Comma separated Meta Server addresses
--meta_server_addrs=192.168.80.128:9559,192.168.80.129:9559,192.168.80.130: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=192.168.80.128
# Meta daemon listening port
--port=9669
1
2
3
4
5
6
7
8
9
6. 修改配置文件nebula-storaged.conf
修改meta_server_addrs和local_ip两个字段,其他使用默认字段

########## networking ##########
# Comma separated Meta Server addresses
--meta_server_addrs=192.168.80.128:9559,192.168.80.129:9559,192.168.80.130: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=192.168.80.128
# Meta daemon listening port
--port=9779
1
2
3
4
5
6
7
8
9
7. 修改另外两台机器的配置文件
修改local_ip位对应机器的IP地址
如果修改了配置文件,希望新配置生效,请在配置文件开头添加--local_config=true再重启服务,否则会从缓存中读取过期配置。

8. 启动集群
master:

/usr/local/nebula/scripts/nebula.service start all
1
slav1和slav2:

/usr/local/nebula/scripts/nebula.service start metad
/usr/local/nebula/scripts/nebula.service start storaged
1
2
9. 连接graph服务
安装nebula-console
下载nebula-console-linux-amd64-v2.0.0-ga
Add execute permissions to the binary

mv nebula-console-linux-amd64-v2.0.0-ga nebula-console
chmod +777 nebula-console
1
2
启动nebula-console

./nebula-console -addr=192.168.80.128 -port 9669 -u root -p nebula
1

处理报错

[WARN] The maximum files allowed to open might be too few: 1024
1
修改文件/etc/security/limits.conf

* soft nofile 204800
* hard nofile 204800
* soft nproc 204800
* hard nproc 204800
1
2
3
4
修改文件/etc/security/limits.d/20-nproc.conf

* soft nproc 204800
* hard nproc 204800
1
2
修改文件/etc/security/limits.d/def.conf

* soft nofile 204800
* hard nofile 204800
1
2
重启
————————————————
版权声明:本文为CSDN博主「对数好奇」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_44674220/article/details/116659708

这篇关于linux安装nebula的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1129345

相关文章

Linux镜像文件制作方式

《Linux镜像文件制作方式》本文介绍了Linux镜像文件制作的过程,包括确定磁盘空间布局、制作空白镜像文件、分区与格式化、复制引导分区和其他分区... 目录1.确定磁盘空间布局2.制作空白镜像文件3.分区与格式化1) 分区2) 格式化4.复制引导分区5.复制其它分区1) 挂载2) 复制bootfs分区3)

2025最新版Android Studio安装及组件配置教程(SDK、JDK、Gradle)

《2025最新版AndroidStudio安装及组件配置教程(SDK、JDK、Gradle)》:本文主要介绍2025最新版AndroidStudio安装及组件配置(SDK、JDK、Gradle... 目录原生 android 简介Android Studio必备组件一、Android Studio安装二、A

Linux服务器数据盘移除并重新挂载的全过程

《Linux服务器数据盘移除并重新挂载的全过程》:本文主要介绍在Linux服务器上移除并重新挂载数据盘的整个过程,分为三大步:卸载文件系统、分离磁盘和重新挂载,每一步都有详细的步骤和注意事项,确保... 目录引言第一步:卸载文件系统第二步:分离磁盘第三步:重新挂载引言在 linux 服务器上移除并重新挂p

前端Visual Studio Code安装配置教程之下载、汉化、常用组件及基本操作

《前端VisualStudioCode安装配置教程之下载、汉化、常用组件及基本操作》VisualStudioCode是微软推出的一个强大的代码编辑器,功能强大,操作简单便捷,还有着良好的用户界面,... 目录一、Visual Studio Code下载二、汉化三、常用组件1、Auto Rename Tag2

Linux下屏幕亮度的调节方式

《Linux下屏幕亮度的调节方式》文章介绍了Linux下屏幕亮度调节的几种方法,包括图形界面、手动调节(使用ACPI内核模块)和外接显示屏调节,以及自动调节软件(CaliseRedshift和Reds... 目录1 概述2 手动调节http://www.chinasem.cn2.1 手动屏幕调节2.2 外接显

Linux(centos7)虚拟机没有IP问题及解决方案

《Linux(centos7)虚拟机没有IP问题及解决方案》文章介绍了在CentOS7中配置虚拟机网络并使用Xshell连接虚拟机的步骤,首先,检查并配置网卡ens33的ONBOOT属性为yes,然后... 目录输入查看ZFhrxIP命令:ip addr查看,没有虚拟机IP修改ens33配置文件重启网络Xh

linux实现对.jar文件的配置文件进行修改

《linux实现对.jar文件的配置文件进行修改》文章讲述了如何使用Linux系统修改.jar文件的配置文件,包括进入文件夹、编辑文件、保存并退出编辑器,以及重新启动项目... 目录linux对.jar文件的配置文件进行修改第一步第二步 第三步第四步总结linux对.jar文件的配置文件进行修改第一步进

win10安装及配置Gradle全过程

《win10安装及配置Gradle全过程》本文详细介绍了Gradle的下载、安装、环境变量配置以及如何修改本地仓库位置,通过这些步骤,用户可以成功安装并配置Gradle,以便进行项目构建... 目录一、Gradle下载1.1、Gradle下载地址1.2、Gradle下载步骤二、Gradle安装步骤2.1、安

linux ssh如何实现增加访问端口

《linuxssh如何实现增加访问端口》Linux中SSH默认使用22端口,为了增强安全性或满足特定需求,可以通过修改SSH配置来增加或更改SSH访问端口,具体步骤包括修改SSH配置文件、增加或修改... 目录1. 修改 SSH 配置文件2. 增加或修改端口3. 保存并退出编辑器4. 更新防火墙规则使用uf

Linux join命令的使用及说明

《Linuxjoin命令的使用及说明》`join`命令用于在Linux中按字段将两个文件进行连接,类似于SQL的JOIN,它需要两个文件按用于匹配的字段排序,并且第一个文件的换行符必须是LF,`jo... 目录一. 基本语法二. 数据准备三. 指定文件的连接key四.-a输出指定文件的所有行五.-o指定输出