NebulaGraph学习(一)
作者:互联网
官网:https://docs.nebula-graph.com.cn/
url:https://oss-cdn.nebula-graph.com.cn/package/<release_version>/nebula-graph-<release_version>.el7.x86_64.rpm
<release_version>:版本号
示例:Centos7:
wget https://oss-cdn.nebula-graph.com.cn/package/nightly/2021.11.24/nebula-graph-2021.11.24-nightly.el7.x86_64.rpm
sudo rpm -ivh nebula-graph-3.2.0.el7.x86_64.rpm(默认路径安装)
示例:sudo /usr/local/nebula/scripts/nebula.service start all(启动全部服务,包括metad、graphd、storaged三个服务)
3.连接 NebulaGraph
连接NebulaGraph服务需要先下载客户端(NebulaGraph Console,NebulaGraph CPP,NebulaGraph Java,NebulaGraph Python,NebulaGraph Go)
下载地址https://github.com/vesoft-inc/nebula-console/releases
直接下载编译好的二进制文件并建议改为为nebula-console(客户端版本需要和NebulaGraph版本相对应,版本相同的 NebulaGraph Console 和 NebulaGraph 兼容程度最高。有兼容问题时,或者无法连接会报错报错incompatible version between client and server
)
连接命令./nebula-console -addr <ip> -port <port> -u <username> -p <password>
示例:./nebula-console -addr 127.0.0.1 -P 9669 -u root -p 密码
未启用身份认证时,密码可以填写任意字符
4.注册 Storage服务
连接后进入界面
添加主机命令ADD HOSTS <ip>:<port> [,<ip>:<port> ...];
示例:ADD HOSTS 127.0.0.1:9779
标签:console,示例,graph,nebula,学习,com,NebulaGraph 来源: https://www.cnblogs.com/66ccffkira/p/16677859.html