无法将neo4j shell连接到本地服务器

Kel*_*nis 4 neo4j

我已经通过自制软件安装了 neo4j 2.0.0 并启动了服务器。我可以在端口 7474 访问 webadmin 控制台,但是当我运行时,neo4j-shell -host localhost -port 7474我得到:

    non-JRMP server at remote endpoint
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:248)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:101)
    at org.neo4j.shell.impl.RmiLocation.getBoundObject(RmiLocation.java:253)
    at org.neo4j.shell.impl.RemoteClient.findRemoteServer(RemoteClient.java:62)
    at org.neo4j.shell.impl.RemoteClient.<init>(RemoteClient.java:55)
    at org.neo4j.shell.impl.RemoteClient.<init>(RemoteClient.java:43)
    at org.neo4j.shell.ShellLobby.newClient(ShellLobby.java:165)
    at org.neo4j.shell.StartClient.startRemote(StartClient.java:295)
    at org.neo4j.shell.StartClient.start(StartClient.java:173)
    at org.neo4j.shell.StartClient.main(StartClient.java:125)
Run Code Online (Sandbox Code Playgroud)

帮助?

ice*_*cer 5

两年后,@jjaderberg 的回答仍然适用。我现在使用的是 Neo4J v3.1.1,当通过 Homebrew 安装时,neo4j.conf 文件没有提到默认端口是 1337。在进一步研究时,Neo4js 正在弃用 Neo4j-shell 以支持 cypher- shell,并通过扩展删除对 1337 端口的需要。

根据https://neo4j.com/docs/operations-manual/current/configuration/ports/ “neo4j-shell 工具已被弃用,建议停止使用。”