跳转到内容

进阶

remote命令

添加service

Terminal window
trantor remote add [alias] [provider]

alias 属性表示当前需要添加的服务的别名。

provider 属性表示当前需要添加的服务的地址。

示例:

Terminal window
trantor remote add ms http://localhost:8080

移除service

Terminal window
trantor remote remove [alias]

alias 属性表示当前需要移除的服务的别名。 示例:

Terminal window
trantor remote remove ms

重命名service

Terminal window
trantor remote rename [alias] [newAlias]

alias 属性表示旧名称。

newAlias 属性表示新名称。

示例:

Terminal window
trantor remote rename ms metaStore

image-20211104165048221

列出所有service

Terminal window
trantor remote list

connect命令

连接服务可以有两种方式。

地址 + 端口号

Terminal window
trantor connect --host [host] --port [port]

host 选项表示服务地址。

port 选项表示新名称。

示例:

Terminal window
trantor connect --host http://localhost --port 8080

image-20211104165153603

别名

Terminal window
trantor connect [alias]

alias 属性表示remote命令中添加过的服务别名。 示例:

Terminal window
trantor connect metaStore

image-20211104165235202

退出连接

Terminal window
exit

image-20211104165302900