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

相关文章

Zookeeper安装和配置说明

一、Zookeeper的搭建方式 Zookeeper安装方式有三种,单机模式和集群模式以及伪集群模式。 ■ 单机模式:Zookeeper只运行在一台服务器上,适合测试环境; ■ 伪集群模式:就是在一台物理机上运行多个Zookeeper 实例; ■ 集群模式:Zookeeper运行于一个集群上,适合生产环境,这个计算机集群被称为一个“集合体”(ensemble) Zookeeper通过复制来实现

CentOS7安装配置mysql5.7 tar免安装版

一、CentOS7.4系统自带mariadb # 查看系统自带的Mariadb[root@localhost~]# rpm -qa|grep mariadbmariadb-libs-5.5.44-2.el7.centos.x86_64# 卸载系统自带的Mariadb[root@localhost ~]# rpm -e --nodeps mariadb-libs-5.5.44-2.el7

Centos7安装Mongodb4

1、下载源码包 curl -O https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.2.1.tgz 2、解压 放到 /usr/local/ 目录下 tar -zxvf mongodb-linux-x86_64-rhel70-4.2.1.tgzmv mongodb-linux-x86_64-rhel70-4.2.1/

linux-基础知识3

打包和压缩 zip 安装zip软件包 yum -y install zip unzip 压缩打包命令: zip -q -r -d -u 压缩包文件名 目录和文件名列表 -q:不显示命令执行过程-r:递归处理,打包各级子目录和文件-u:把文件增加/替换到压缩包中-d:从压缩包中删除指定的文件 解压:unzip 压缩包名 打包文件 把压缩包从服务器下载到本地 把压缩包上传到服务器(zip

Centos7安装JDK1.8保姆版

工欲善其事,必先利其器。这句话同样适用于学习Java编程。在开始Java的学习旅程之前,我们必须首先配置好适合的开发环境。 通过事先准备好这些工具和配置,我们可以避免在学习过程中遇到因环境问题导致的代码异常或错误。一个稳定、高效的开发环境能够让我们更加专注于代码的学习和编写,提升学习效率,减少不必要的困扰和挫折感。因此,在学习Java之初,投入一些时间和精力来配置好开发环境是非常值得的。这将为我

Linux 网络编程 --- 应用层

一、自定义协议和序列化反序列化 代码: 序列化反序列化实现网络版本计算器 二、HTTP协议 1、谈两个简单的预备知识 https://www.baidu.com/ --- 域名 --- 域名解析 --- IP地址 http的端口号为80端口,https的端口号为443 url为统一资源定位符。CSDNhttps://mp.csdn.net/mp_blog/creation/editor

【Python编程】Linux创建虚拟环境并配置与notebook相连接

1.创建 使用 venv 创建虚拟环境。例如,在当前目录下创建一个名为 myenv 的虚拟环境: python3 -m venv myenv 2.激活 激活虚拟环境使其成为当前终端会话的活动环境。运行: source myenv/bin/activate 3.与notebook连接 在虚拟环境中,使用 pip 安装 Jupyter 和 ipykernel: pip instal

安装nodejs环境

本文介绍了如何通过nvm(NodeVersionManager)安装和管理Node.js及npm的不同版本,包括下载安装脚本、检查版本并安装特定版本的方法。 1、安装nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash 2、查看nvm版本 nvm --version 3、安装

Linux_kernel驱动开发11

一、改回nfs方式挂载根文件系统         在产品将要上线之前,需要制作不同类型格式的根文件系统         在产品研发阶段,我们还是需要使用nfs的方式挂载根文件系统         优点:可以直接在上位机中修改文件系统内容,延长EMMC的寿命         【1】重启上位机nfs服务         sudo service nfs-kernel-server resta