先决条件
centos8 4核8G内存
架构
Nebula Graph 由三种服务构成:Graph 服务、Meta 服务和 Storage 服务,是一种存储与计算分离的架构。
每个服务都有可执行的二进制文件和对应进程,用户可以使用这些二进制文件在一个或多个计算机上部署 Nebula Graph 集群。
安装
#release_version=2.6.1
#https://oss-cdn.nebula-graph.com.cn/package/<release_version>/nebula-graph-<release_version>.el8.x86_64.rpm
wget https://oss-cdn.nebula-graph.com.cn/package/2.6.1/nebula-graph-2.6.1.el8.x86_64.rpm
rpm -ivh nebula-graph-2.6.1.el8.x86_64.rpm
# 查看安装路径,默认安装路径为/usr/local/nebula/
ls /usr/local/nebula/
#output
#bin etc scripts share
启动Nebula Graph服务
sudo /usr/local/nebula/scripts/nebula.service start all
output:
[WARN] The maximum files allowed to open might be too few: 1024
[INFO] Starting nebula-metad...
[INFO] Done
[INFO] Starting nebula-graphd...
[INFO] Done
[INFO] Starting nebula-storaged...
[INFO] Done
查看Nebula Graph服务
sudo /usr/local/nebula/scripts/nebula.service status all
output:
[INFO] nebula-metad(de03025): Running as 15578, Listening on 9559
[INFO] nebula-graphd(de03025): Running as 15679, Listening on 9669
[INFO] nebula-storaged(de03025): Running as 15712, Listening on 9779
客户端连接
到官方网站下载nebula-console-linux-amd64-v2.6.0
sudo mv nebula-console-linux-amd64-v2.6.0 /usr/local/bin/nebula-console
chmod +x /usr/local/bin/nebula-console
#密码随便输入吧。根据官方提示,没有启动认证的话,密码输入任意字符就行了,没有报错就表示连接成功了。
nebula-console -addr 192.168.xxx.xxx -port 9669 -u root -p 12
解决错误提示
[WARN] The maximum files allowed to open might be too few: 1024
编辑/etc/security/limits.conf文件,添加如下内容
vim /etc/security/limits.conf
root soft nofile 40000
root hard nofile 40000
备注:
Nebula Graph服务由Meta服务、Graph服务和Storage服务共同提供,这三种服务的配置文件都保存在安装目录的etc目录内,默认路径为/usr/local/nebula/etc/,用户可以检查相应的配置文件排查问题。
参考:
安装Nebula Graph
启动Nebula Graph服务
连接Nebula Graph
centos8单机部署Nebula Graph Studio