尝试连接到 LAN 上的 ArangoDB 服务器时,“请求的地址在其上下文中无效”

问题描述 投票:0回答:1

我在 LAN 上有两台机器,我想从另一台机器连接到其中一台机器上的 AranoDB 服务。

第一个地址是192.168.0.105,

arangod.conf

[server]
endpoint = tcp://0.0.0.0:8529
storage-engine = auto

另一个地址为 192.168.0.100 和

arangod.conf

[server]
endpoint = tcp://192.168.0.105:8529
storage-engine = auto

第一台机器上的 ArangoDB 正在运行。当我尝试在第二台机器上启动 ArangoDB 时,我看到以下错误:

2018-08-21T09:46:15Z [2724] INFO {authentication} Jwt secret not specified, generating...
2018-08-21T09:46:15Z [2724] INFO ArangoDB 3.3.12 [win64] 64bit, using build tags/v3.3.12-0-g225095d762, VPack 0.1.30, RocksDB 5.6.0, ICU 58.1, V8 5.7.492.77, OpenSSL 1.0.2a 19 Mar 2015
2018-08-21T09:46:15Z [2724] INFO using storage engine mmfiles
2018-08-21T09:46:15Z [2724] INFO {cluster} Starting up with role SINGLE
2018-08-21T09:46:15Z [2724] INFO {authentication} Authentication is turned on (system only)
2018-08-21T09:46:18Z [2724] INFO using endpoint 'http+tcp://192.168.0.105:8529' for non-encrypted requests
2018-08-21T09:46:18Z [2724] ERROR {communication} unable to bind to endpoint 'http+tcp://192.168.0.105:8529': The requested address is not valid in its context
2018-08-21T09:46:18Z [2724] WARNING {communication} failed to open endpoint 'http+tcp://192.168.0.105:8529' with error: The requested address is not valid in its context
2018-08-21T09:46:18Z [2724] FATAL failed to bind to endpoint 'http+tcp://192.168.0.105:8529'. Please check whether another instance is already running using this endpoint and review your endpoints configuration.

我已经在 Windows 防火墙和路由器中创建了规则。

Test-NetConnection
结果是:

PS C:\Users\> Test-NetConnection -ComputerName 192.168.0.105 -Port 8529
ComputerName     : 192.168.0.105
RemoteAddress    : 192.168.0.105
RemotePort       : 8529
SourceAddress    : 192.168.0.100
TcpTestSucceeded : True

我还应该做什么?

arangodb
1个回答
0
投票

不确定您在这里尝试什么...将一台服务器连接到另一台服务器?这注定会失败。您不想在一台计算机上运行服务器并使用

arangosh
从本地网络上的另一台计算机连接到该服务器吗?或者只是使用网络界面?

端点必须是本地计算机的网络接口使用的地址。它不能是另一台机器的地址。

集群等设置需要更多配置(如果是裸机完成)。 有关包括多机设置在内的部署模式的概述,您可能需要查看文档:https://docs.arangodb.com/3.11/deploy/deployment/

© www.soinside.com 2019 - 2024. All rights reserved.