我正在尝试将当前位于 localhost 上的应用程序连接到 AWS 上的 rethinkdb 服务器。我使用 rethinkdb AMI 来配置服务器并启动并运行。但是,我不断收到连接失败的消息。我正在使用 rethinkdbdash 尝试连接( https://github.com/neumino/rethinkdbdash )。以下是我的连接代码,目前数据库上没有密码。任何人都知道如何连接到它:
let r = rethinkdbdash({
db: 'test',
user: 'rethinkdb',
servers: [{host: 'my.aws.ip.addr', port: '28015'}]
});
最佳答案
连接语法错误...实际语法应该是:
let r = rethinkdbdash(
{
host: 'ip.addr.here',
db: 'test',
});
关于javascript - 将应用程序连接到 AWS 上的 RethinkDB 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38025361/