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

相关文章

gitlab安装及邮箱配置和常用使用方式

《gitlab安装及邮箱配置和常用使用方式》:本文主要介绍gitlab安装及邮箱配置和常用使用方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录1.安装GitLab2.配置GitLab邮件服务3.GitLab的账号注册邮箱验证及其分组4.gitlab分支和标签的

MySQL MCP 服务器安装配置最佳实践

《MySQLMCP服务器安装配置最佳实践》本文介绍MySQLMCP服务器的安装配置方法,本文结合实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下... 目录mysql MCP 服务器安装配置指南简介功能特点安装方法数据库配置使用MCP Inspector进行调试开发指

在Windows上使用qemu安装ubuntu24.04服务器的详细指南

《在Windows上使用qemu安装ubuntu24.04服务器的详细指南》本文介绍了在Windows上使用QEMU安装Ubuntu24.04的全流程:安装QEMU、准备ISO镜像、创建虚拟磁盘、配置... 目录1. 安装QEMU环境2. 准备Ubuntu 24.04镜像3. 启动QEMU安装Ubuntu4

Python UV安装、升级、卸载详细步骤记录

《PythonUV安装、升级、卸载详细步骤记录》:本文主要介绍PythonUV安装、升级、卸载的详细步骤,uv是Astral推出的下一代Python包与项目管理器,主打单一可执行文件、极致性能... 目录安装检查升级设置自动补全卸载UV 命令总结 官方文档详见:https://docs.astral.sh/

Linux脚本(shell)的使用方式

《Linux脚本(shell)的使用方式》:本文主要介绍Linux脚本(shell)的使用方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录概述语法详解数学运算表达式Shell变量变量分类环境变量Shell内部变量自定义变量:定义、赋值自定义变量:引用、修改、删

Nexus安装和启动的实现教程

《Nexus安装和启动的实现教程》:本文主要介绍Nexus安装和启动的实现教程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、Nexus下载二、Nexus安装和启动三、关闭Nexus总结一、Nexus下载官方下载链接:DownloadWindows系统根

Java SWT库详解与安装指南(最新推荐)

《JavaSWT库详解与安装指南(最新推荐)》:本文主要介绍JavaSWT库详解与安装指南,在本章中,我们介绍了如何下载、安装SWTJAR包,并详述了在Eclipse以及命令行环境中配置Java... 目录1. Java SWT类库概述2. SWT与AWT和Swing的区别2.1 历史背景与设计理念2.1.

Linux链表操作方式

《Linux链表操作方式》:本文主要介绍Linux链表操作方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、链表基础概念与内核链表优势二、内核链表结构与宏解析三、内核链表的优点四、用户态链表示例五、双向循环链表在内核中的实现优势六、典型应用场景七、调试技巧与

详解Linux中常见环境变量的特点与设置

《详解Linux中常见环境变量的特点与设置》环境变量是操作系统和用户设置的一些动态键值对,为运行的程序提供配置信息,理解环境变量对于系统管理、软件开发都很重要,下面小编就为大家详细介绍一下吧... 目录前言一、环境变量的概念二、常见的环境变量三、环境变量特点及其相关指令3.1 环境变量的全局性3.2、环境变

Linux系统中的firewall-offline-cmd详解(收藏版)

《Linux系统中的firewall-offline-cmd详解(收藏版)》firewall-offline-cmd是firewalld的一个命令行工具,专门设计用于在没有运行firewalld服务的... 目录主要用途基本语法选项1. 状态管理2. 区域管理3. 服务管理4. 端口管理5. ICMP 阻断