部署 Explorer
在部署 Explorer 之前,用户需要确认以下信息:
Nebula Graph 服务已经部署并启动。详细信息参考Nebula Graph安装部署。
以下端口未被使用。
使用的 Linux 发行版为 CentOS ,安装有版本为 v10.16.0 + 以上的 Node.js。
安装
根据需要下载 RPM 包,建议选择最新版本。
使用命令安装RPM包。
例如,安装 Explorer 需要运行以下命令:
$ sudo rpm -e nebula-graph-explorer-<version>.x86_64
异常处理
如果在安装过程中自动启动失败或是需要手动启动或停止服务,请使用以下命令.
手动启动服务
手动停止服务
$ sudo sh ./scripts/stop.sh
在部署 Explorer 之前,用户需要确认以下信息:
Nebula Graph 服务已经部署并启动。详细信息参考。
以下端口未被使用。
端口号 说明 7002 Explorer 提供的 web 服务 8070 Nebula-http-gateway 的 HTTP 服务
安装
使用 解压 tar 包。
部署 nebula-http-gateway 并启动。
$ cd nebula-http-gateway
$ nohup ./nebula-httpd &
部署 nebula-graph-explorer
停止服务
用户可以采用的方式来关停服务:
$ kill $(lsof -t -i :8070) # 停止 nebula-http-gateway
$ cd nebula-graph-explorer
启动成功后,在浏览器地址栏输入 http://<ip_address>:7002
。
在浏览器窗口中看到以下登录界面表示已经成功部署并启动了 Explorer。