Skip to content

Commit 49bb23f

Browse files
authored
ADD HOSTS in docker deployment (#1514)
This will prevent users from being confused.
1 parent fc4a70f commit 49bb23f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs-2.0/4.deployment-and-installation/2.compile-and-install-nebula-graph/3.deploy-nebula-graph-with-docker-compose.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@
9494

9595
默认情况下,身份认证功能是关闭的,只能使用已存在的用户名(默认为`root`)和任意密码登录。如果想使用身份认证,请参见[身份认证](../../7.data-security/1.authentication/1.authentication.md)。
9696

97-
3. 执行如下命令检查`nebula-storaged`进程状态
97+
3. 执行如下命令将 `nebula-storaged` 进程增加为可用状态
9898

9999
```bash
100+
nebula> ADD HOSTS "storaged0":9779,"storaged1":9779,"storaged2":9779;
101+
100102
nebula> SHOW HOSTS;
101103
+-------------+------+----------+--------------+----------------------+------------------------+---------+
102104
| Host | Port | Status | Leader count | Leader distribution | Partition distribution | Version |
@@ -106,8 +108,10 @@
106108
| "storaged2" | 9779 | "ONLINE" | 0 | "No valid partition" | "No valid partition" | "3.0.0" |
107109
+-------------+------+----------+--------------+----------------------+------------------------+---------+
108110
```
111+
!!! Note
112+
从 3.0 开始,上报到 metad 的 `nebula-storaged` 服务需要人为 `ADD HOSTS` 之后才可以被使用。
109113

110-
5. 执行两次`exit` 可以退出容器。
114+
5. 执行两次`exit`可以退出容器。
111115

112116
## 查看 Nebula Graph 服务的状态和端口
113117

@@ -273,4 +277,4 @@ docker pull vesoft/nebula-console:{{console.branch}}
273277
[使用 docker compose 部署 Nebula Graph 2.0 和 Web Studio](https://www.bilibili.com/video/BV1T54y1b7pa)(18 分 10 秒)
274278

275279
<iframe src="//player.bilibili.com/player.html?aid=844979052&bvid=BV1T54y1b7pa&cid=319036307&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="720px" height="480px"> </iframe>
276-
-->
280+
-->

0 commit comments

Comments
 (0)