部署 Explorer

    在部署 Explorer 之前,用户需要确认以下信息:

    • Nebula Graph 服务已经部署并启动。详细信息参考Nebula Graph安装部署

    • 以下端口未被使用。

    • 使用的 Linux 发行版为 CentOS ,安装有版本为 v10.16.0 以上的 Node.js,安装有版本为1.13及以上的Go。

      Caution

      目前 Nebula Explorer 提供的包仅在 Linux 环境中使用,如果用户使用 mac 或其他环境,需要克隆,并修改 文件中的 httpport = 8070 后使用 make 命令编译启动。

    安装

    1. 根据需要下载 RPM 包,建议选择最新版本。

      Enterpriseonly

      Explorer 仅在企业版提供,点击 查看更多。

    2. 使用sudo rpm -i <rpm>命令安装RPM包。

      例如,安装 Explorer 需要运行以下命令:

    1. $ sudo rpm -e nebula-graph-explorer-<version>.x86_64

    异常处理

    如果在安装过程中自动启动失败或是需要手动启动或停止服务,请使用以下命令.

    • 手动启动服务

    • 手动停止服务

    在部署 Explorer 之前,用户需要确认以下信息:

    • Nebula Graph 服务已经部署并启动。详细信息参考。

    • 以下端口未被使用。

      端口号说明
      7002Explorer 提供的 web 服务
      8070Nebula-http-gateway 的 HTTP 服务

    安装

    1. 根据需要下载 tar 包,建议选择最新版本。

      Enterpriseonly

    2. 使用 tar -xvf 解压 tar 包。

    Note

    根目录 nebula-graph-explorer 下一共有两个安装包:nebula-graph-explorer 和 nebula-http-gateway。用户需要在同一台机器上分别部署并启动服务,才能完成 Explorer 的部署。

    1. 部署 nebula-http-gateway 并启动。

      1. $ nohup ./nebula-httpd &
    2. 部署 nebula-graph-explorer

    停止服务

    用户可以采用kill pid的方式来关停服务:

    1. $ kill $(lsof -t -i :8070) # 停止 nebula-http-gateway
    2. $ cd nebula-graph-explorer

    启动成功后,在浏览器地址栏输入 http://<ip_address>:7002

    在浏览器窗口中看到以下登录界面表示已经成功部署并启动了 Explorer。

    进入 Explorer 登录界面后,用户需要连接 Nebula Graph。详细信息,参考连接数据库