Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy dashboard and account #893

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions docs-2.0/nebula-dashboard-ent/2.deploy-connect-dashboard-en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Deploy Dashboard

This topic will introduce how to install and deploy Dashboard through tar package in detail.
izhuxiaoqing marked this conversation as resolved.
Show resolved Hide resolved

## Nebula Graph version

The version correspondence between Dashboard and Nebula Graph is as follows.

|Dashboard version|Nebula Graph version|
|:---|:---|
|{{ dashboard-en.release }}|2.x|

## tar-based Dashboard

### Prerequisites

Before you deploy tar-based Dashboard, you must do a check of these:

- The environment of [MySql](https://www.mysql.com/) is ready and a database named as `dashboard` is created.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MySQL

- Before the installation starts, the following ports are not occupied.

| Port | Description |
| ---- | ---- |
| 7005 | The port through which Dashboard provides the web service. |
| 8090 | The port through which nebula-http-gateway provides the HTTP service. |
| 9090 | The port of the prometheus service. |
| 9200 | The port of the nebula-stats-exporter service. |

- The license is ready.

!!! enterpriseonly

The license is only available in the Enterprise Edition. To obtain the license, send an email to inquiry@vesoft.com.
izhuxiaoqing marked this conversation as resolved.
Show resolved Hide resolved

### Install and start

1. Select and download the tar package according to your needs. It is recommended to select the latest version.

!!! enterpriseonly

For features of Dashboard Enterprise Edition, see [Pricing](https://nebula-graph.com.cn/pricing/).

2. Use `tar -xzvf` to decompress the tar package.

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

3. Use `vim config/config.yaml` to modify the configuration.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edit might be more precise than use.


```bash
# Information about the database
database:
dialect: mysql # The type of database used, which currently only supports MySql
host: 192.168.8.157 # The IP address of the connected MySql database
port: 3306 # The port of the connected MySql database
username: root # The username to log in MySql
password: nebula # The password to log in MySql
name: dashboard # The name of the corresponding database
autoMigrate: true # Auto database tables creation, the default value of which is true
# Information about the exporter port
exporter:
nodePort: 9100 # The port of the node-exporter service
nebulaPort: 9200 # The port of the nebula-stats-exporter service
# Information of services
proxy:
gateway:
target: "localhost:8090" # The IP address and port of the gateway service
prometheus:
target: "localhost:9090" # The IP address and port of the prometheus service
```

4. Copy the license to the `nebula-dashboard` directory.
izhuxiaoqing marked this conversation as resolved.
Show resolved Hide resolved

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

For example:
```bash
$ cp -r nebula.license /usr/local/nebula-dashboard
```

!!! enterpriseonly

The license is only available in the Enterprise Edition. To obtain the license, send an email to inquiry@vesoft.com.
izhuxiaoqing marked this conversation as resolved.
Show resolved Hide resolved

5. Start Dashboard.

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

### Stop service

```bash
$ bash ./scripts/stop.sh
```

## Next to do

After Dashboard is successfully started, you can enter `http://<ip_address>:7005` in the address bar of the browser.
izhuxiaoqing marked this conversation as resolved.
Show resolved Hide resolved
If the following login interface is shown in the browser, then you have successfully deployed and started Dashboard.

![start-page](../nebula-dashboard-en/figs/ds-028.png)
9 changes: 9 additions & 0 deletions docs-2.0/nebula-dashboard-ent/5.account-management.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Authority management

By default, you can log in with the GOD role (`nebula` as the default username and `nebula` as the default password). And the ADMIN account can be created or deleted on the authority management page.

![god](../nebula-dashboard-ent/figs/ds-032.png)

You cannot perform operations on other accounts using the ADMIN account you created except for viewing the user name, the role, and the creation time.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user name or username?
username used in the above sentense


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