Neo4J安装-StartService失败 [英] Neo4J installation - StartService Failure
问题描述
我正在尝试安装Neo4j(1.8),但是在启动服务时遇到了问题.
I'm trying to install Neo4j(1.8) but i faced a problem when starting the service.
解压缩zip文件后,我直接进入bin文件夹并执行批处理文件:
after extracting the zip file I went directly to the bin folder and executed the batch file:
Neo4J.bat install
[SC] CreateService成功
[SC] StartService失败1053:
该服务未及时响应启动或控制请求.
[SC] CreateService SUCCESS
[SC] StartService Failed 1053:
The service did not respond to the start or control request in a timely fashion.
我对graphDB非常热衷,所以我去了shell并创建了数百个节点和关系的新数据库,我花了近一周的时间在该shell上工作,一切似乎都很棒,直到我了解WebService和REST为止API,因此现在我需要运行该服务. RTFM案例!
挖掘一下...我发现我没有 neo4j-server.properties 文件到conf目录中,这些问题是:
digging a bit... I found that I don't have neo4j-server.properties file into the conf directory, the questions:
1-该文件负责服务启动失败吗?
2-我应该手动构建该文件,哪些是强制性参数?
3-这是正常现象还是zip文件已损坏?
1- is that file responsible for the service start failure?
2- should I build that file manually, and what are the mandatory params?
3- is this a normal behavior or the zip file was corrupted?
PS:我尝试创建props文件,如下所示:
org.neo4j.server.database.location=D:/Neo4J/db/Mydb/
org.neo4j.server.webserver.port=7474
org.neo4j.server.webserver.address=0.0.0.0
wrapper.java.additional.3=-Djava.net.preferIPv4Stack=true
org.neo4j.server.db.tuning.properties=neo4j.properties
但该服务拒绝启动!
干杯,
OB.
Cheers,
Ob.
推荐答案
在版本1.8.2中并使用Windows 8,我遇到了相同的问题: 我将安装文件夹移至
In version 1.8.2 and using windows 8 I had the same problem: I moved the install folder to
程序文件\ neo4j
program files\neo4j
然后获得了完全访问权限
then took full access rights
并编辑bin \ base.bat,其中说:
and edited the bin\base.bat, where it said:
set wrapperJarFilename=windows-service-wrapper-*.jar
我更改为:
set wrapperJarFilename=windows-service-wrapper-4.jar
现在可以使用了:
C:\Program Files\Neo4j\bin>Neo4j.bat install
[SC] CreateService SUCCESS
SERVICE_NAME: Neo4j-Server
TYPE : 10 WIN32_OWN_PROCESS
STATE : 2 START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x7d0
PID : 2936
FLAGS :
C:\Program Files\Neo4j\bin>
卸载也可以
C:\Program Files\Neo4j\bin>Neo4j.bat uninstall
SERVICE_NAME: Neo4j-Server
TYPE : 10 WIN32_OWN_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x1388
[SC] DeleteService SUCCESS
C:\Program Files\Neo4j\bin>
这篇关于Neo4J安装-StartService失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!