我已经通过自制程序安装了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)
帮助?
答案 0 :(得分:4)
两年后,@ 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工具已被弃用,建议停止使用它。”
答案 1 :(得分:0)
non-JRMP server at remote endpoint
意味着需要启用SSL。
答案 2 :(得分:0)
neo4j-shell的默认端口是1337,但是如果您在主机上运行shell,则根本不需要使用远程连接,请尝试在没有参数的情况下运行它或使用{{1 }}