【问题标题】:Can't connect neo4j shell to local server无法将 neo4j shell 连接到本地服务器
【发布时间】:2014-01-30 04:51:57
【问题描述】:

我已经通过自制软件安装了 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)

帮助?

【问题讨论】:

    标签: neo4j


    【解决方案1】:

    两年后,@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 工具已被弃用,建议停止使用。”

    【讨论】:

    • cypher-shell -u neo4j -p password -a bolt://localhost:1234 效果很好(显然,使用您自己的凭据和端口)
    【解决方案2】:
    non-JRMP server at remote endpoint 
    

    表示需要开启 SSL。

    【讨论】:

    • @PeterMorris 迟到总比不到好,编辑neo4j.conf,可能位于/etc/neo4j/neo4j.conf,然后重启neo4j服务,可能使用systemctl restart neo4j。
    • @JochemKuijpers 我不再使用neo4j :)
    • @PeterMorris 我认为它与您不再相关,但由于它出现在我的 Google 搜索中,它总有一天可能会对某人有所帮助。
    【解决方案3】:

    neo4j-shell 的默认端口是 1337,但如果您在主机上运行 shell,则根本不需要使用远程连接,请尝试完全不带参数或使用 -path path/to/your/db 运行它.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-09
      • 2021-09-01
      • 1970-01-01
      • 2018-10-17
      • 1970-01-01
      相关资源
      最近更新 更多