我在局域网上有两台机器,我想从另一台连接到其中一台上的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我还能做什么呢?
发布于 2018-08-21 20:02:05
不知道你在这里尝试了什么.从一台服务器连接到另一台服务器?这肯定会失败。您不想在一台计算机上运行服务器,然后使用arangosh从本地网络上的另一台计算机连接到该服务器吗?或者只是简单地使用web界面?
终结点必须是本地计算机的网络接口使用的地址。它不能是另一台机器的地址。
像集群这样的设置需要更多的配置(如果是裸机)。有关部署模式(包括多机设置)的概述,您可能需要查看正在进行的文档:https://docs.arangodb.com/devel/Manual/Deployment/
https://stackoverflow.com/questions/51946176
复制相似问题