【问题标题】:Tarantool remote admin console does not ask passwordTarantool 远程管理控制台不询问密码
【发布时间】:2020-09-22 23:30:12
【问题描述】:

我需要在 tcp(不是 unix 套接字)上为 tarantool 设置远程管理控制台。
根据文档,它与 console 模块一起提供。
我将此添加到我的 tarantool 配置中:

console.listen("0.0.0.0:3313")

然后我可以通过 telnet 或使用 tarantoolctl connect 连接到它。
但我不高兴它没有密码保护。是的,我读过docs
是否有可能通过密码获得受保护的控制台?

【问题讨论】:

    标签: tarantool


    【解决方案1】:

    通过身份验证远程管理 tarantool 的正确方法是打开一个常规二进制端口,如下所示:

    box.cfg({listen=3301})
    

    然后用 tarantoolctl 连接到它:

    tarantoolctl connect admin:password@127.0.0.1:3301
    

    因此,请通过您用来连接 Python 或 PHP 客户端的同一主机:端口连接到实例。

    您所指的控制台模块并不打算通过 TCP 使用。它支持 TCP,但它本质上是纯文本的,没有任何身份验证。它仅供拥有root帐户的本地用户使用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-05-22
      • 2015-06-25
      • 1970-01-01
      • 1970-01-01
      • 2020-06-07
      • 2019-04-08
      • 2021-12-25
      • 2018-05-11
      相关资源
      最近更新 更多