-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
101 additions
and
0 deletions.
There are no files selected for viewing
101 changes: 101 additions & 0 deletions
101
docs-2.0/nebula-dashboard-ent/2.deploy-connect-dashboard-ent.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# 部署Dashboard | ||
|
||
安装部署Dashboard,本文将详细介绍如何通过tar包安装部署。 | ||
|
||
## Nebula Graph版本 | ||
|
||
Dashboard版本和Nebula Graph的版本对应关系如下。 | ||
|
||
|Dashboard版本|Nebula Graph版本| | ||
|:---|:---| | ||
|{{ dashboard_ent.release }}|2.x| | ||
|
||
## tar 包部署 | ||
### 前提条件 | ||
|
||
在部署Dashboard之前,用户需要确认以下信息: | ||
|
||
- 准备[MySql](https://www.mysql.com/cn/)环境,创建名称为`dashboard`的数据库。 | ||
- 确保在安装开始前,以下端口处于未被使用状态。 | ||
|
||
| 端口号 | 说明 | | ||
| ---- | ---- | | ||
| 7005 | Dashboard提供web服务的端口。 | | ||
| 8090 | nebula-http-gateway提供HTTP服务的端口。 | | ||
| 9090 | prometheus服务的端口。 | | ||
| 9200 | nebula-stats-exporter服务的端口。 | | ||
|
||
- 准备License。 | ||
|
||
!!! enterpriseonly | ||
|
||
License仅在企业版提供,请发送邮件至[email protected]。 | ||
|
||
|
||
### 安装及启动 | ||
|
||
1. 根据需要下载tar包,建议选择最新版本。 | ||
|
||
!!! enterpriseonly | ||
|
||
Dashboard仅在企业版提供,点击 [定价](https://nebula-graph.com.cn/pricing/) 查看更多。 | ||
|
||
2. 使用`tar -xzvf`解压tar包。 | ||
|
||
```bash | ||
$ tar -xzvf nebula-graph-dashboard-<version>.tar.gz | ||
``` | ||
|
||
3. 使用`vim config/config.yaml`命令修改配置文件。 | ||
|
||
```bash | ||
# 数据库信息 | ||
database: | ||
dialect: mysql # 使用的数据库类型,目前仅支持MySql | ||
host: 192.168.8.157 # 连接的MySql数据库的ip地址 | ||
port: 3306 # 连接的MySql数据库的端口号 | ||
username: root # 登陆MySql的账号 | ||
password: nebula # 登陆MySql的密码 | ||
name: dashboard # 对应的数据库名称 | ||
autoMigrate: true # 自动创建数据库表,默认为true | ||
# exporter端口信息 | ||
exporter: | ||
nodePort: 9100 # node-exporter服务的端口 | ||
nebulaPort: 9200 # nebula-stats-exporter服务的端口 | ||
# 服务信息 | ||
proxy: | ||
gateway: | ||
target: "localhost:8090" # gateway服务的IP地址和端口 | ||
prometheus: | ||
target: "localhost:9090" # prometheus服务的IP地址和端口 | ||
``` | ||
|
||
4. 拷贝License至`nebula-dashboard`目录下。 | ||
|
||
```bash | ||
$ cp -r <license> <dashboard_path> | ||
``` | ||
|
||
例如: | ||
```bash | ||
$ cp -r nebula.license /usr/local/nebula-dashboard | ||
``` | ||
|
||
5. 启动Dashboard。 | ||
|
||
```bash | ||
$ bash ./scripts/start.sh | ||
``` | ||
|
||
### 停止服务 | ||
|
||
```bash | ||
$ bash ./scripts/stop.sh | ||
``` | ||
|
||
## 后续操作 | ||
|
||
启动成功后,在浏览器地址栏输入`http://<ip_address>:7005`。 | ||
在浏览器窗口中看到以下登录界面表示已经成功部署并启动了Dashboard。 | ||
|
||
 |