无法在Windows上启动Neo4j,没有错误消息 [英] Unable to start Neo4j on Windows, no error messages
问题描述
我在Windows 7上使用以下内容:
I'm using the following on Windows 7:
- neo4j-community-1.9.2
- Java 7 Update 25
我禁用了Windows防火墙.
I have Windows Firewall disabled.
以管理员身份和通常身份启动Neo4j.bat时,出现以下消息:
When I start Neo4j.bat, both as Administrator and normally, I get the following message:
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
空白的Java控制台窗口弹出,没有消息,然后一分钟左右消失.
A blank Java console window pops up, no messages, then the window disappears after a minute or so.
当我转到http://localhost:7474/
时,我只是收到未找到服务器的错误.
When I go to http://localhost:7474/
, I just get a server not found error.
如果我尝试将其安装为服务,则该服务将无法启动.
If I try to install it as a service, the service wouldn't start.
有什么想法可以启动Neo4j吗?我在这里看到Neo4j 1.9确实支持Java 7:
Any ideas what I need to do to start Neo4j? I see here that Neo4j 1.9 does support Java 7:
http://blog.neo4j.org/2013/03/neo4j-19m05-released-wrapping-up.html
base.bat
正确指向windows-service-wrapper-5.jar
,所以不是某些人过去遇到的windows-service-wrapper-*.jar
问题.如果输出错误消息,将很有帮助.
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. It would be helpful if it outputted an error message.
我刚刚在neo4j 2.0里程碑上进行了尝试,但没有任何区别. Java窗口不显示任何消息,弹出http://localhost:7474/
找不到服务器错误,然后一两分钟后关闭Java窗口.
I just tried it with neo4j 2.0 milestone, and it didn't make any difference. 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_HOME和JRE_HOME系统变量,没有区别.如果Neo4j无论如何都找不到Java,我想我会得到一个错误.
I added JAVA_HOME and JRE_HOME system variables, made no difference. I think I would get an error if Neo4j was not able to locate Java anyway.
推荐答案
我已修复它.
在Neo4j的Google网上论坛的帮助下,我查看了data/logs/*.log
和data/graph.db/messages.log
中的日志,发现以下异常:
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:
Caused by: java.rmi.server.ExportException: Port already in use: 1337; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
一旦我禁用了使用该端口的其他服务,http://localhost:7474
处的Neo4j的Web管理员就会起作用.然后我发现Neo4j的远程Shell使用了端口1337,我通过在neo4j.properties
中添加enable_remote_shell = false
来禁用它,然后我就可以同时运行Neo4j和其他服务.
Once I disabled my other service that uses that port, Neo4j's web admin at http://localhost:7474
worked. 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.
这篇关于无法在Windows上启动Neo4j,没有错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!