如何通过Lua脚本启动Tarantool数据库的控制台界面?
- 内容介绍
- 文章标签
- 相关推荐
本文共计284个文字,预计阅读时间需要2分钟。
我安装了tarantool(tarantool_box)和tarantool-client。可以启动tarantool了,使用命令+/usr/bin/tarantool_box --background+,但尝试连接到服务器时,只用得到管理控制台+localhost+,且只能使用一些基本命令。
我安装了tarantool(tarantool_box)和tarantool-client.我可以开始tarantool了/usr/bin/tarantool_box --background
但是当我尝试连接到服务器时
/usr/bin/tarantool
我只看到管理控制台
localhost>
并且只能使用一些命令和类似SQL的查询.我不能使用用户指南中的任何命令,几乎所有以lua开头的命令都会失败:
lua console = require('console') --- error: 'Lua error: [string "local console = require(''console'')"]:1: attempt to call global ''require'' (a nil value)' ... 解决方案,干净的Debian wheezy,在tarantool github github.com/tarantool/tarantool上找到
sudo apt-get update sudo apt-get upgrade
更新后
sudo apt-get install git sudo apt-get install build-essential sudo apt-get install libreadline-dev sudo apt-get install cmake sudo git clone github.com/tarantool/tarantool cd ./tarantool sudo git submodule update --init --recursive sudo cmake . sudo make
建成之后
sudo ./tarantool/src/tarantool
本文共计284个文字,预计阅读时间需要2分钟。
我安装了tarantool(tarantool_box)和tarantool-client。可以启动tarantool了,使用命令+/usr/bin/tarantool_box --background+,但尝试连接到服务器时,只用得到管理控制台+localhost+,且只能使用一些基本命令。
我安装了tarantool(tarantool_box)和tarantool-client.我可以开始tarantool了/usr/bin/tarantool_box --background
但是当我尝试连接到服务器时
/usr/bin/tarantool
我只看到管理控制台
localhost>
并且只能使用一些命令和类似SQL的查询.我不能使用用户指南中的任何命令,几乎所有以lua开头的命令都会失败:
lua console = require('console') --- error: 'Lua error: [string "local console = require(''console'')"]:1: attempt to call global ''require'' (a nil value)' ... 解决方案,干净的Debian wheezy,在tarantool github github.com/tarantool/tarantool上找到
sudo apt-get update sudo apt-get upgrade
更新后
sudo apt-get install git sudo apt-get install build-essential sudo apt-get install libreadline-dev sudo apt-get install cmake sudo git clone github.com/tarantool/tarantool cd ./tarantool sudo git submodule update --init --recursive sudo cmake . sudo make
建成之后
sudo ./tarantool/src/tarantool

