2014-01-30 52 views
2

我已经通过自制软件安装了neo4j 2.0.0并启动了服务器。我能够在端口7474来访问WebAdmin的控制台,但是当我运行neo4j-shell -host localhost -port 7474我得到:无法将neo4j外壳连接到本地服务器

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
non-JRMP server at remote endpoint 

意味着它证明打开SSL是必需的。

+3

这是怎么完成的? –

0

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

2

两年后,@jjaderberg的答案仍然相关。我现在使用的是Neo4J v3.1.1,当通过Homebrew安装时,neo4j.conf文件没有提及默认端口1337.在进一步研究时,Neo4js不赞成使用neo4j-shell来支持cypher-外壳,并通过扩展删除的1337端口的需要。

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

相关问题