远程 ArangoDB 访问

Remote ArangoDB access

我正在尝试访问远程 ArangoDb 安装(在 windows 服务器上)。

我已经尝试更改 arangod.conf 中的端点,如另一个 post 中所述,但是一旦我这样做,数据库就会停止远程和本地响应。

我希望能够远程执行以下操作:

  1. 在我的应用程序代码中连接到服务器(在开发期间)。
  2. 从本地 arangosh 连接到服务器 shell。
  3. 连接到 Arango 服务器仪表板(http://127.0.0.1:8529/_db/_system/_admin/aardvark/standalone.html

请查看 managing endpoints documentation.It 说明如何绑定以及如何检查它是否成功。

好久没回来了。多亏了之前的评论,我才能够解决这个问题。

要编辑的文件是arangod.conf。在位于 windows 的机器上:

C:\Program Files\ArangoDB 2.6.9\etc\arangodb\arangod.conf

[服务器] 部分下的评论很有帮助。我将端点更改为我的服务器的 IP 地址(底线)

[server]
# Specify the endpoint for HTTP requests by clients.
#  tcp://ipv4-address:port
#  tcp://[ipv6-address]:port
#  ssl://ipv4-address:port
#  ssl://[ipv6-address]:port
#  unix:///path/to/socket
#
# Examples:
#   endpoint = tcp://0.0.0.0:8529
#   endpoint = tcp://127.0.0.1:8529
#   endpoint = tcp://localhost:8529
#   endpoint = tcp://myserver.arangodb.com:8529
#   endpoint = tcp://[::]:8529
#   endpoint = tcp://[fe80::21a:5df1:aede:98cf]:8529
#

endpoint = tcp://192.168.0.14:8529

现在我可以使用上面的地址从我的客户端访问服务器了。