Can';t将neo4j外壳连接到本地服务器

Can';t将neo4j外壳连接到本地服务器,neo4j,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.crea

我已经通过自制软件安装了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)
远程端点处的非JRMP服务器
java.rmi.ConnectionException:远程端点处的非JRMP服务器
位于sun.rmi.transport.tcp.tcpcchannel.createConnection(tcpcchannel.java:248)
位于sun.rmi.transport.tcp.tcpcchannel.newConnection(tcpcchannel.java:202)
位于sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341)
位于sun.rmi.registry.RegistryImpl\u Stub.lookup(未知源)
位于java.rmi.Naming.lookup(Naming.java:101)
位于org.neo4j.shell.impl.RmiLocation.getBoundObject(RmiLocation.java:253)
位于org.neo4j.shell.impl.RemoteClient.findRemoteServer(RemoteClient.java:62)
位于org.neo4j.shell.impl.RemoteClient(RemoteClient.java:55)
位于org.neo4j.shell.impl.RemoteClient(RemoteClient.java:43)
位于org.neo4j.shell.ShellLobby.newClient(ShellLobby.java:165)
位于org.neo4j.shell.StartClient.startRemote(StartClient.java:295)
位于org.neo4j.shell.StartClient.start(StartClient.java:173)
位于org.neo4j.shell.StartClient.main(StartClient.java:125)
帮忙


意味着需要打开SSL。

neo4j外壳的默认端口是1337,但如果您在主机上运行外壳,则根本不需要使用远程连接,试着在没有任何参数的情况下运行它,或者在两年后使用
-path/to/your/db
运行它,@jjaderberg的答案仍然相关。我现在使用的是Neo4J v3.1.1,通过自制软件安装时,Neo4J.conf文件没有引用默认端口1337。在进一步研究这一点时,Neo4js不赞成使用neo4j外壳,而支持cypher外壳,并进一步消除了对1337端口的需求


“neo4j shell工具已被弃用,建议停止使用。”

cypher shell-u neo4j-p password-abolt://localhost:1234
效果很好(显然,使用您自己的凭据和端口)@PeterMorris迟到总比不迟到好,编辑neo4j.conf,可能位于
/etc/neo4j/neo4j.conf
中,然后重新启动neo4j服务,可能使用
systemctl restart neo4j
@jochemkuippers我不再使用neo4j:)@PeterMorris我想它对你不再有意义了,但既然它出现在我的谷歌搜索中,也许有一天会对某人有所帮助。
non-JRMP server at remote endpoint