【问题标题】:How to get tarantool version from command line interface?如何从命令行界面获取 tarantool 版本?
【发布时间】:2020-12-17 04:16:38
【问题描述】:

我可以使用这个命令获取 tarantool 客户端版本:

$ tarantool --version
Tarantool 2.5.2-50-g0cb9a4bba

但是如何在终端中获取 tarantool 服务器版本?

tarantoolctl connect 3301                                          
connected to localhost:3301
localhost:3301>
---
- error: '[string "return version()"]:1: attempt to call global ''version'' (a nil
    value)'
...

【问题讨论】:

    标签: tarantool


    【解决方案1】:

    获取版本有几种方式:

    tarantool> _TARANTOOL
    ---
    - 2.7.0-74-g71377c28e
    ...
    tarantool> require('tarantool').version
    ---
    - 2.7.0-74-g71377c28e
    ...
    tarantool> box.info.version -- only after box.cfg{<...>}
    ---
    - 2.7.0-74-g71377c28e
    ...
    

    【讨论】:

      【解决方案2】:

      没关系,找到了

      box.info.version
      ---
      - 2.6.0-0-g47aa4e01e
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-09-23
        • 2016-04-21
        • 1970-01-01
        • 1970-01-01
        • 2023-02-08
        • 2012-10-19
        • 1970-01-01
        相关资源
        最近更新 更多