2014-01-30 112 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工具已被棄用,建議終止其使用。」

相關問題