如何从命令行界面获取 tarantool 版本?
How to get tarantool version from command line interface?
我可以使用此命令获取 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)'
...
没关系,找到了
box.info.version
---
- 2.6.0-0-g47aa4e01e
获取版本的方式有几种:
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
...
我可以使用此命令获取 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)'
...
没关系,找到了
box.info.version
---
- 2.6.0-0-g47aa4e01e
获取版本的方式有几种:
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
...