Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
foesa-yang committed Nov 5, 2021
1 parent c32d67c commit 5671277
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 26 deletions.
85 changes: 59 additions & 26 deletions docs-2.0/nebula-dashboard-en/2.deploy-connect-dashboard-en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 部署Dashboard

安装部署Dashboard涉及5种服务,本文将详细介绍如何通过 RPM 包安装部署。
安装部署Dashboard,本文将详细介绍如何通过 tar 包安装部署。

## Nebula Graph版本

Expand All @@ -10,49 +10,82 @@ Dashboard 版本和 Nebula Graph 的版本对应关系如下。
|:---|:---|
|{{ dashboard-ent.release }}|2.x|

## RPM 部署
## tar 包部署
### 前提条件

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

- Nebula Graph服务已经部署并启动。详细信息参考[Nebula Graph安装部署](../4.deployment-and-installation/1.resource-preparations.md "点击前往 Nebula Graph 安装部署")

- 确保以下端口未被使用:
- 9200
- 9100
- 9090
- 准备mysql环境,创建名称为`dashboard`的数据库。
- 确保以下端口未被使用。
- 8090
- 7003
- 9200
- 9300

### 安装及启动

- 使用的 Linux 发行版为 CentOS ,安装有版本为 v10.12.0 以上的 Node.js,安装有版本为1.13及以上的Go
1. 根据需要下载 tar 包,建议选择最新版本

### 安装
!!! enterpriseonly

1. 根据需要下载 RPM 包,建议选择最新版本。
Explorer 仅在企业版提供,点击 [定价](https://nebula-graph.com.cn/pricing/) 查看更多。

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

```bash
$ tar -xvf nebula-graph-dashboard-<version>.tar.gz
```

3. 使用`vim config/config.yaml`命令修改配置文件。

```bash
database:
dialect: mysql #使用的数据库类型
host: 192.168.8.157 # 连接的mysql数据库的ip地址
port: 3306 # 连接的mysql数据库的端口号
username: root # mysql 账号
password: nebula # mysql 密码
name: dashboard # 对应的数据库名称
autoMigrate: true
exporter:
nodePort: 9100
nebulaPort: 9200
proxy:
gateway:
target: "localhost:8090"
prometheus:
target: "localhost:9090"
```

4. 拷贝 License 至`nebula-dashboard`目录下。

```bash
$ cp -r <license> <dashboard_path>
```

例如:
```bash
$ cp -r nebula.license /usr/local/nebula-dashboard
```

!!! enterpriseonly

Dashboard 企业版点击 [定价](https://nebula-graph.com.cn/pricing/) 查看更多
License 仅在企业版提供,请发送邮件至 inquiry@vesoft.com。

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

例如,安装 Dashboard 企业版需要运行以下命令:
```bash
$ sudo rpm -i nebula-graph-dashboard-<version>.x86_64.rpm
```
5. 启动Dashboard。

```bash
$ bash ./scripts/start.sh
```

### 卸载
### 停止服务

使用以下的命令卸载 Dashboard。
```bash
$ sudo rpm -e nebula-graph-dashboard-<version>.x86_64
$ bash ./scripts/stop.sh
```

<!--
## 后续操作

启动成功后,在浏览器地址栏输入 http://<ip_address>:7003
启动成功后,在浏览器地址栏输入 `http://<ip_address>:9300`
在浏览器窗口中看到以下登录界面表示已经成功部署并启动了 Dashboard。
picture

-->
![start-page](../nebula-dashboard-en/figs/ds-028.png)
Binary file added docs-2.0/nebula-dashboard-en/figs/ds-028.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5671277

Please sign in to comment.