Neo4J installation - failure in StartService

I am trying to install Neo4j (1.8), but I ran into a problem when starting the service.

after extracting the zip file, I went directly to the bin folder and executed the batch file:

Neo4J.bat install 

[SC] CreateService amplification
[SC] StartService 1053 error:
The service did not respond to a launch or control request in a timely manner.

I was so passionate about graphics that I went into the shell and created new db hundreds of nodes and relationships, and I spent almost a week on this shell, everything seems wonderful until I read about WebService and the REST API, so now I need a service to run . RTFM case

dig a little ... I found that I do not have the neo4j-server.properties file in the conf directory, questions:

1- is the file responsible for the failure to start the service?
2- should I create this file manually and what are the required parameters?
3 - is this normal behavior or is the zip file damaged?

PS: I tried to create the props file as follows:

 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 

but the service refuses to run!

Cheers
Ob.

+4
source share
3 answers

In version 1.8.2 and using windows 8 I had the same problem: I moved the installation folder to

program files \ neo4j

then got full access rights

and edited bin \ base.bat where he said:

 set wrapperJarFilename=windows-service-wrapper-*.jar 

I changed to:

 set wrapperJarFilename=windows-service-wrapper-4.jar 

Now it works:

 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> 

Removal also works

 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> 
+7
source

I could not install the neo4j 1.8 console until I created the neo4j directory in the folder with the program files, it sounds strange if you know that I work as an administrator, I know his privilege situation! but who cares, his run. (Sometimes I hate windows).

+6
source

For 1.9 and Windows 7, reinstalling in c: \ program files also fixes the situation.

For 1.9 there is no need to change wrapperJarFilename (it is already set to 5)

+1
source

Source: https://habr.com/ru/post/1440336/


All Articles