forked from vesoft-inc/nebula-docs-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dashboard ent (vesoft-inc#1182)
* Update dashboard ent * update * Update 8.faq.md * update * Update 2.deploy-connect-dashboard-ent.md * update-1109 * Update 2.deploy-connect-dashboard-ent.md
- Loading branch information
1 parent
a6e531e
commit c465cdf
Showing
8 changed files
with
83 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
# 部署Dashboard | ||
|
||
安装部署Dashboard,本文将详细介绍如何通过tar包安装部署。 | ||
本文将详细介绍如何安装并部署Dashboard。 | ||
|
||
## Nebula Graph版本 | ||
## 前提条件 | ||
|
||
Dashboard版本和Nebula Graph的版本对应关系如下。 | ||
|
||
|Dashboard版本|Nebula Graph版本| | ||
|:---|:---| | ||
|{{ dashboard_ent.release }}|2.x| | ||
在部署Dashboard之前,用户需要确认以下信息: | ||
|
||
## tar 包部署 | ||
### 前提条件 | ||
- 选择并下载符合版本的Dashboard,Dashboard版本和Nebula Graph的版本对应关系如下。 | ||
|
||
在部署Dashboard之前,用户需要确认以下信息: | ||
| Dashboard版本 | Nebula Graph版本 | | ||
| :-------------------------- | :--------------- | | ||
| {{ dashboard_ent.release }} | 2.x | | ||
|
||
- 准备[MySql](https://www.mysql.com/cn/)环境,创建名称为`dashboard`的数据库。 | ||
- 确保在安装开始前,以下端口处于未被使用状态。 | ||
|
||
| 端口号 | 说明 | | ||
| ---- | ---- | | ||
| 7005 | Dashboard提供web服务的端口。 | | ||
| 8090 | nebula-http-gateway提供HTTP服务的端口。 | | ||
| 9090 | prometheus服务的端口。 | | ||
| 9200 | nebula-stats-exporter服务的端口。 | | ||
| 端口号 | 说明 | | ||
| ------ | --------------------------------- | | ||
| 7005 | Dashboard提供web服务的端口。 | | ||
| 8090 | nebula-http-gateway服务的端口。 | | ||
| 9090 | prometheus服务的端口。 | | ||
| 9200 | nebula-stats-exporter服务的端口。 | | ||
|
||
- 准备License。 | ||
|
||
|
@@ -32,10 +29,10 @@ Dashboard版本和Nebula Graph的版本对应关系如下。 | |
License仅在企业版提供,请发送邮件至[email protected]。 | ||
|
||
|
||
### 安装及启动 | ||
## 安装及启动 | ||
|
||
1. 根据需要下载tar包,建议选择最新版本。 | ||
|
||
!!! enterpriseonly | ||
|
||
Dashboard仅在企业版提供,点击 [定价](https://nebula-graph.com.cn/pricing/) 查看更多。 | ||
|
@@ -65,9 +62,9 @@ Dashboard版本和Nebula Graph的版本对应关系如下。 | |
# 服务信息 | ||
proxy: | ||
gateway: | ||
target: "localhost:8090" # gateway服务的IP地址和端口 | ||
target: "127.0.0.1:8090" # gateway服务的IP地址和端口 | ||
prometheus: | ||
target: "localhost:9090" # prometheus服务的IP地址和端口 | ||
target: "127.0.0.1:9090" # prometheus服务的IP地址和端口 | ||
``` | ||
|
||
4. 拷贝License至`nebula-dashboard`目录下。 | ||
|
@@ -83,19 +80,59 @@ Dashboard版本和Nebula Graph的版本对应关系如下。 | |
|
||
5. 启动Dashboard。 | ||
|
||
可以使用以下命令一键启动Dashboard。 | ||
```bash | ||
$ cd scripts | ||
$ sudo ./dashboard.service start all | ||
``` | ||
或是执行以下命令,分别启动prometheus、webserver、exporter和gateway服务以启动Dashboard。 | ||
```bash | ||
$ bash ./scripts/start.sh | ||
$ cd scripts | ||
$ sudo ./dashboard.server start prometheus # 启动prometheus服务 | ||
$ sudo ./dashboard.server start webserver #启动webserver服务 | ||
$ sudo ./dashboard.server start exporter #启动exporter服务 | ||
$ sudo ./dashboard.server start gateway #启动gateway服务 | ||
``` | ||
|
||
### 停止服务 | ||
## 管理Dashboard服务 | ||
|
||
Dashboard使用脚本`dashboard.service`管理服务,包括启动、停止和查看。 | ||
|
||
### 语法 | ||
|
||
```bash | ||
$ sudo <dashboard_path>/dashboard/scripts/dashboard.service | ||
[-v] [-h] | ||
<start|stop|status> <prometheus|webserver|exporter|gateway|all> | ||
``` | ||
|
||
| 参数 | 说明 | | ||
| :------------------------- | :------------------- | | ||
| `dashboard_path` | Dashboard安装路径。 | | ||
| `-v` | 显示详细调试信息。 | | ||
| `-h` | 显示帮助信息。 | | ||
| `start` | 启动服务。 | | ||
| `stop` | 停止服务。 | | ||
| `status` | 查看服务状态。 | | ||
| `prometheus` | 管理prometheus服务。 | | ||
| `webserver` | 管理webserver服务。 | | ||
| `exporter` | 管理exporter服务。 | | ||
| `gateway` | 管理gateway服务。 | | ||
| `all` | 管理所有服务。 | | ||
|
||
### 示例 | ||
|
||
Dashboard的安装在当前目录下,用户可以用以下命令管理服务。 | ||
```bash | ||
$ bash ./scripts/stop.sh | ||
$ sudo /dashboard/scripts/dashboard.service start all #启动Dashboard所有服务 | ||
$ sudo /dashboard/scripts/dashboard.service stop all #停止Dashboard所有服务 | ||
$ sudo /dashboard/scripts/dashboard.service status all #查看Dashboard所有服务状态 | ||
``` | ||
|
||
## 后续操作 | ||
|
||
启动成功后,在浏览器地址栏输入`http://<ip_address>:7005`。 | ||
在浏览器窗口中看到以下登录界面表示已经成功部署并启动了Dashboard。 | ||
|
||
![start-page](../nebula-dashboard-ent/figs/ds-028.png) | ||
在浏览器窗口中看到以下登录界面表示已经成功部署并启动了Dashboard,用户可以通过默认用户名`nebula`和密码`nebula`登陆Dashboard的GOD用户。可以在 [系统设置](../nebula-dashboard-ent/6.system-settings.md) 中修改密码,也可以在 [权限管理](../nebula-dashboard-ent/5.account-management.md) 页面创建权限为ADMIN的账号用来登陆Dashboard。 | ||
|
||
![start-page](../nebula-dashboard-ent/figs/ds-028.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs-2.0/nebula-dashboard-ent/3.create-import-dashboard/2.import-cluster.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters