Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法启动neo4j服务器2.1.2_Java_Macos_Neo4j - Fatal编程技术网

Java 无法启动neo4j服务器2.1.2

Java 无法启动neo4j服务器2.1.2,java,macos,neo4j,Java,Macos,Neo4j,我无法在OSX上用java 7启动最新的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.

我无法在OSX上用java 7启动最新的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)

任何关于什么地方出了问题或如何更好地调试问题的想法都值得赞赏

我也遇到了同样的问题

在我的例子中,这是因为
neo4jshell
试图使用使用的端口
1337

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

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

data/graph.db/messages.log中有什么?太好了,就是这样!我应该检查使用过的端口,但如果neo能让我们知道使用过的端口,那就太好了。谢谢Tks!也为我工作+对我来说没用。顺便说一句,为什么1337只对根用户可用?我知道1024以下的端口是root特权端口。