简体   繁体   English

无法在Windows上启动Neo4j,没有错误消息

[英]Unable to start Neo4j on Windows, no error messages

I'm using the following on Windows 7: 我在Windows 7上使用以下功能:

  • neo4j-community-1.9.2 Neo4j的社区-1.9.2
  • Java 7 Update 25 Java 7更新25

I have Windows Firewall disabled. 我禁用了Windows防火墙。

When I start Neo4j.bat, both as Administrator and normally, I get the following message: 当我以管理员身份和通常身份启动Neo4j.bat时,收到以下消息:

c:\Tools\neo4j\bin>Neo4j.bat 
28/07/13 9:34:27 PM org.neo4j.server.AbstractNeoServer INFO: Setting startup tim 
eout to: 120000ms based on -1

A blank Java console window pops up, no messages, then the window disappears after a minute or so. 将弹出一个空白的Java控制台窗口,没有消息,然后大约一分钟后该窗口消失。

When I go to http://localhost:7474/ , I just get a server not found error. 当我转到http://localhost:7474/ ,我只是收到服务器未找到错误。

If I try to install it as a service, the service wouldn't start. 如果我尝试将其安装为服务,则该服务将无法启动。

Any ideas what I need to do to start Neo4j? 我要启动Neo4j需要做些什么? I see here that Neo4j 1.9 does support Java 7: 我在这里看到Neo4j 1.9确实支持Java 7:

http://blog.neo4j.org/2013/03/neo4j-19m05-released-wrapping-up.html http://blog.neo4j.org/2013/03/neo4j-19m05-released-wrapping-up.html

base.bat correctly points to windows-service-wrapper-5.jar , so not the windows-service-wrapper-*.jar problem that some people have had in the past. base.bat正确指向windows-service-wrapper-5.jar ,而不是某些人过去遇到的windows-service-wrapper-*.jar问题。 It would be helpful if it outputted an error message. 如果输出错误消息,将很有帮助。


I just tried it with neo4j 2.0 milestone, and it didn't make any difference. 我只是使用neo4j 2.0里程碑进行了尝试,但没有任何区别。 The Java window pops up with no messages, http://localhost:7474/ gets a server not found error, then the Java window closes after a minute or two. Java窗口不显示任何消息, http://localhost:7474/出现服务器未找到错误,然后一两分钟后关闭。

I added JAVA_HOME and JRE_HOME system variables, made no difference. 我添加了JAVA_HOME和JRE_HOME系统变量,没有区别。 I think I would get an error if Neo4j was not able to locate Java anyway. 我想如果Neo4j无论如何都无法找到Java,我会得到一个错误。

I've fixed it. 我已经解决了。

With help from Neo4j's Google Group, I looked at the logs in data/logs/*.log and data/graph.db/messages.log , and found the following exception: 在Neo4j的Google小组的帮助下,我查看了data/logs/*.logdata/graph.db/messages.log data/logs/*.log ,发现以下异常:

Caused by: java.rmi.server.ExportException: Port already in use: 1337; nested exception is:
    java.net.BindException: Address already in use: JVM_Bind

Once I disabled my other service that uses that port, Neo4j's web admin at http://localhost:7474 worked. 一旦我禁用了使用该端口的其他服务,位于http://localhost:7474 Neo4j的Web管理员就可以工作了。 I then found out port 1337 is used by Neo4j's remote shell, I disabled it by adding enable_remote_shell = false to neo4j.properties , then I was able to have both Neo4j and my other service running. 然后,我发现Neo4j的远程Shell使用了端口1337,我通过在neo4j.properties添加enable_remote_shell = false禁用了neo4j.properties ,然后我就可以同时运行Neo4j和其他服务。

I'm using the version 2.2.1 community edition of Neo4j on Windows 7, Java 1.8 update 45 我正在Windows 7,Java 1.8更新45上使用Neo4j的2.2.1社区版本

In my case the log file messages.log was under default.graphdb directory. 在我的情况下,日志文件messages.log位于default.graphdb目录下。 In there, you'll see the root cause of the problem. 在这里,您将看到问题的根本原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM