Skip to content

Commit

Permalink
Update 3.deploy-nebula-graph-with-docker-compose.md (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy authored Mar 7, 2022
1 parent fc21eb5 commit 1027b31
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ Using Docker Compose can quickly deploy Nebula Graph services based on the prepa

By default, the authentication is off, you can only log in with an existing username (the default is `root`) and any password. To turn it on, see [Enable authentication](../../7.data-security/1.authentication/1.authentication.md).

3. Run the `SHOW HOSTS` statement to check the status of the `nebula-storaged` processes.
3. Run the following commands to make the `nebula-storaged` processes to the available state.

```bash
nebula> ADD HOSTS "storaged0":9779,"storaged1":9779,"storaged2":9779;
nebula> SHOW HOSTS;
+-------------+------+----------+--------------+----------------------+------------------------+---------+
| Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version |
Expand All @@ -107,6 +109,10 @@ Using Docker Compose can quickly deploy Nebula Graph services based on the prepa
+-------------+------+----------+--------------+----------------------+------------------------+---------+
```

!!! Note

Starting from Nebula Graph version 3.0.0, the `nebula-storaged` service reported to metad needs to execute 'ADD HOSTS' manually before it can be used.

5. Run `exit` twice to switch back to your terminal (shell). You can run Step 4 to log in to Nebula Graph again.

## Check the Nebula Graph service status and ports
Expand Down

0 comments on commit 1027b31

Please sign in to comment.