【问题标题】:Unable to start neo4j server 2.1.2无法启动 neo4j 服务器 2.1.2
【发布时间】:2014-08-10 20:37:48
【问题描述】:

我无法使用 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)

对出了什么问题或如何更好地调试问题的任何想法表示赞赏

【问题讨论】:

  • data/graph.db/messages.log 中有什么内容?

标签: java macos neo4j


【解决方案1】:

我遇到了同样的问题。

在我的情况下,这是因为 neo4j-shell 尝试使用已使用的端口 1337

只需编辑conf/neo4j.properties 中的最后一行并将端口更改为其他内容,例如

# The port the shell will listen on, default is 1337
remote_shell_port=1338

【讨论】:

  • 太好了,就是这样!我应该检查使用的端口,但如果 neo 能让我们知道使用的端口,那就太好了。谢谢!
  • 谢谢!也为我工作。 +1
  • 对我不起作用。顺便说一句,为什么 1337 只对root 可用?我知道1024以下的端口是root权限的。
猜你喜欢
  • 1970-01-01
  • 2015-02-17
  • 1970-01-01
  • 2015-04-19
  • 1970-01-01
  • 2023-03-30
  • 2016-06-09
  • 2013-03-02
  • 1970-01-01
相关资源
最近更新 更多