我无法使用java 7在OSX上启动最新的Neo4j社区服务器2.1.2。 下载并解压缩neo4j-community-2.1.2-unix.tar.gz后,我试图运行./bin/neo4j start而不修改任何配置或数据目录,但它失败了
neo4j-community-2.1.2 markus$ ./bin/neo4j start
Using additional JVM arguments: -server -XX:+DisableExplicitGC - org.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 [14899]... waiting for server to be ready................................. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
data / log / console.log不太有用:
2014-06-20 06:24:04.865+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
我在OSX Mavericks 10.9.2上运行java 7:
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
对于出现问题或如何更好地调试问题的任何想法都赞赏
答案 0 :(得分:5)
我遇到了同样的问题。
就我而言,是因为neo4j-shell
尝试使用已使用的端口1337
。
只需编辑conf/neo4j.properties
中的最后一行,然后将端口更改为其他内容,例如
# The port the shell will listen on, default is 1337
remote_shell_port=1338