ArangoDB를 백엔드 데이터베이스로 사용하는 Java 애플리케이션을 개발했습니다 (ArangoDB에 액세스하기 위해 ArangoDB Java-Driver / Interface 사용).
내 ArangoDB와 응용 프로그램이 동일한 컴퓨터에 상주 할 때까지 모든 것이 좋습니다.
ArangoDB를 원격 시스템 (전용 서버)으로 옮겼을 때 내 응용 프로그램이 액세스 할 수 없습니다.
일부 속성 파일에 원격 컴퓨터 세부 정보 (ArangoDB Server)를 지정하고 ArangoDriver 개체를 만드는 동안 해당 파일 위치를 ArangoConfigure 생성자에 제공했습니다. 하지만 여전히 ArangoDB에 액세스 할 수 없습니다.
내 코드의 작은 스 니펫은 다음과 같습니다.
protected static ArangoConfigure getConfiguration() {
//ArangoConfigure configure = new ArangoConfigure();
ArangoConfigure configure = new
ArangoConfigure("/Volumes/Official/ZLabs/arangodb.properties");
configure.init();
return configure; }
protected static ArangoDriver getArangoDriver(ArangoConfigure
configuration) { return new ArangoDriver(configuration); }
이와 관련하여 저를 도와주세요.
당신의 응답을 기다리고.
감사합니다.-Mahi
Aranngodb Java 드라이버가 열리지 않거나 구문 분석에 실패하면 /Volumes/Official/ZLabs/arangodb.properties
로그 메시지가 표시됩니다.
arangodb 속성이 다음과 같은 경우 :
port=8529
host=192.168.22.17
user=root
password=OpenSesame
enableCURLLogger=false
방화벽, 라우팅 등으로 인해 가능한 연결 문제를 피하기 위해 TCP 연결 문제를 디버깅 하기 위해 OSI 모델 을 시작 합니다 . 하나는 일반적으로 사용 가능한 텔넷 명령을 사용하여 서버의 가용성을 테스트합니다.
telnet 192.168.22.17 8529
Trying 192.168.22.17...
그것이 영원히 거기에 있다면, 아마도 방화벽이 당신을 필터링하고있을 것입니다.
telnet: Unable to connect to remote host: Connection timed out
다음과 함께 즉시 종료되는 경우 :
telnet: Unable to connect to remote host: Connection refused
서버가 응답하지 않는 것 같습니다.
서버 측에서 서비스가 연결하려는 포트 (8529)를 바인딩했는지 확인할 수 있습니다.
netstat -alpnt |grep 8529
tcp 0 0 0.0.0.0:8529 0.0.0.0:* LISTEN 19912/arangod
대신 바인딩 127.0.0.1:8529
이 표시되면 원격으로 연결할 수 없으며 다음과 같이 arangod.conf를 변경해야합니다.
[server]
endpoint = tcp://0.0.0.0:8529
그런 다음 ArangoDB를 다시 시작하십시오. 그러면 다음과 같은 것을 볼 수 있습니다.
telnet 192.168.22.17 8529
Trying 192.168.22.17...
Connected to 192.168.22.17.
Escape character is '^]'. <start to type now: >
GET / HTTP/1.0
<server should reply:>
HTTP/1.1 301 Moved Permanently
Location: /_db/_system/_admin/aardvark/index.html
Content-Type: text/html
Server: ArangoDB
Connection: Close
Content-Length: 197
<html><head><title>Moved</title></head><body><h1>Moved</h1>
<p>This page has moved to <a href="/_db/_system/_admin/aardvark/index.html">/_db/_system/_admin/aardvark/index.html</a>.
</p></body></html>Connection closed by foreign host.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다