OrientDB-3.1无法连接远程服务器地址

OrientDB-3.1无法连接远程服务器地址,orientdb,orientdb3.0,Orientdb,Orientdb3.0,我正在使用OrientDB-3.1.2。我可以从浏览器连接OrientDB,但从代码来看,它无法连接到db。 这是我的代码片段 private static OrientGraphFactory gFactory; private OrientGraph graphDB; gFactory = new OrientGraphFactory("remote:localhost:2480/<db-name>").setupPool(0, 40); this.graph

我正在使用OrientDB-3.1.2。我可以从浏览器连接OrientDB,但从代码来看,它无法连接到db。 这是我的代码片段

private static OrientGraphFactory gFactory;
private OrientGraph graphDB;
gFactory = new OrientGraphFactory("remote:localhost:2480/<db-name>").setupPool(0, 40);
this.graphDB = gFactory.getTx();
private static OrientGraphFactory gFactory;
专用定向图;
gFactory=new-OrientGraphFactory(“remote:localhost:2480/”).setupPool(0,40);
this.graphDB=gFactory.getTx();
这给我带来了一个例外-

ERROR Message:{Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot create a connection to remote server address(es): [127.0.0.1:2480]
} Module:{} Summary:{}
2020-09-09 17:53:31,293 ERROR Message:{ DB name="<some-db-name>"
} Module:{} Summary:{}
2020-09-09 17:53:31,293 ERROR Message:{ at com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1906)
} Module:{} Summary:{}
2020-09-09 17:53:31,293 ERROR Message:{ at com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1750)
} Module:{} Summary:{}
2020-09-09 17:53:31,293 ERROR Message:{ at com.orientechnologies.orient.client.remote.OStorageRemote.open(OStorageRemote.java:570)
} Module:{} Summary:{}
2020-09-09 17:53:31,293 ERROR Message:{ at com.orientechnologies.orient.core.db.document.ODatabaseDocumentRemote.internalOpen(ODatabaseDocumentRemote.java:235)
} Module:{} Summary:{}
2020-09-09 17:53:31,293 ERROR Message:{ at com.orientechnologies.orient.core.db.OrientDBRemote.open(OrientDBRemote.java:110)
} Module:{} Summary:{}
2020-09-09 17:53:31,294 ERROR Message:{ ... 66 more
错误消息:{原因:com.orientechnologies.orient.core.exception.ostrageexception:无法创建到远程服务器地址的连接:[127.0.0.1:2480]
}模块:{}摘要:{}
2020-09-09 17:53:31293错误消息:{DB name=“”
}模块:{}摘要:{}
2020-09-09 17:53:31293错误消息:{在com.orientechnologies.orient.client.remote.ostrageremote.openRemoteDatabase(ostrageremote.java:1906)
}模块:{}摘要:{}
2020-09-09 17:53:31293错误消息:{在com.orientechnologies.orient.client.remote.ostrageremote.openRemoteDatabase(ostrageremote.java:1750)
}模块:{}摘要:{}
2020-09-09 17:53:31293错误消息:{在com.orientechnologies.orient.client.remote.ostrageremote.open(ostrageremote.java:570)
}模块:{}摘要:{}
2020-09-09 17:53:31293错误消息:{at com.orientechnologies.orient.core.db.document.ODatabaseDocumentRemote.internalOpen(ODatabaseDocumentRemote.java:235)
}模块:{}摘要:{}
2020-09-09 17:53:31293错误消息:{at com.orientechnologies.orient.core.db.OrientDBRemote.open(OrientDBRemote.java:110)
}模块:{}摘要:{}
2020-09-09 17:53:31294错误消息:{…更多信息

有人能告诉我,我哪里做错了???

你指的是2480,那是HTTP端口,你可以在那里找到工作室


连接地址应为2424,即二进制协议端口(如果忙,则会分配另一个端口,但您仍可以在服务器日志中看到它)

实际上是2424;)