问题描述
我已经通过自制软件安装了neo4j 2.0.0并启动了服务器.我可以通过端口7474访问webadmin控制台,但是当我运行neo4j-shell -host localhost -port 7474
时,我得到:
I've installed neo4j 2.0.0 via homebrew and started the server. I'm able to access the webadmin console at port 7474 but when I run neo4j-shell -host localhost -port 7474
I get:
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)
帮助?
推荐答案
两年后,@ jjaderberg的答案仍然有意义.我现在使用的是Neo4J v3.1.1,通过Homebrew安装时,neo4j.conf文件未引用默认端口1337.为了进一步研究,Neo4js不赞成使用neo4j-shell,而是使用cypher-外壳,并通过扩展消除了对1337端口的需要.
Two years later and @jjaderberg's answer is still relevant. I'm on Neo4J v3.1.1 right now and when installing via Homebrew, the neo4j.conf file makes no reference to the default port being 1337. In researching this further, Neo4js is deprecating use of the neo4j-shell in favor of cypher-shell, and by extension remove's the need for the 1337 port.
根据 https://neo4j.com/docs/operations-manual /current/configuration/ports/"neo4j-shell工具已被弃用,建议停止使用."
According to https://neo4j.com/docs/operations-manual/current/configuration/ports/"The neo4j-shell tool is being deprecated and it is recommended to discontinue its use."
这篇关于无法将Neo4j Shell连接到本地服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!