小编roy*_*ond的帖子

neo4j-shell"连接拒绝"错误

我在Mac上运行2.0.0 M06(ML)

Neo4j正在运行,Web控制台正常运行.但是当我尝试通过Neo4j-shell连接时,它失败了.周三一切都很好,但在尝试Postgres安装(MusicBrainz Neo4j项目的一部分)之后出现了这个问题:

sneedham-pd:neo4j-community-2.0.0-M06 username$ **bin/neo4j start**
Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...WARNING: not changing user
process [694]... waiting for server to be ready..... OK.
http://localhost:7474/ is ready.

sneedham-pd:neo4j-community-2.0.0-M06 username$ **bin/neo4j-shell -v**
ERROR (-v for expanded information):
    Connection refused
java.rmi.ConnectException: Connection refused to host: 172.16.31.31; nested exception is: 
    java.net.ConnectException: Connection refused
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:128)
    at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194)
    at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148)
    at com.sun.proxy.$Proxy1.welcome(Unknown Source)
    at org.neo4j.shell.impl.AbstractClient.sayHi(AbstractClient.java:206)
    at org.neo4j.shell.impl.RemoteClient.findRemoteServer(RemoteClient.java:63)
    at …
Run Code Online (Sandbox Code Playgroud)

shell neo4j

7
推荐指数
2
解决办法
9925
查看次数

按关系属性排序 neo4j

使用 Neo4j 1.9.3 -

我想创建一个音乐节目列表。在一个给定的程序中,可能会执行三个片段。每首曲子都有一个与之相关联的作曲家,并且可能出现在许多不同的程序中,因此我无法在曲子节点上放置序列号。

我假设我可以创建程序,与每个部分的关系如下:

(program1)-[:PROGRAM_PIECE {program_seq: 1}]->(piece1)
(program1)-[:PROGRAM_PIECE {program_seq: 2}]->(piece2)
(program1)-[:PROGRAM_PIECE {program_seq: 3}]->(piece3)
Run Code Online (Sandbox Code Playgroud)

我的问题是,我如何查询图形以便这些部分按关系属性的顺序排列program_seq?我很好地将 ORDER BY 与节点属性一起使用,但在关系方面没有成功(我的生活故事......)

sql-order-by neo4j

3
推荐指数
1
解决办法
2517
查看次数

标签 统计

neo4j ×2

shell ×1

sql-order-by ×1