Install Neo4j 3.0+ as a Windows Service

Has anyone tried to install version neo4j version 3 in windows as a service? I am tired of neo4j community version 3.1.0 and 3.2.0 alpha. When I try to start the service, I get the following error.

Invoke-Neo4j: The service "Neo4j Graph Database - neo4j (neo4j)" could not be started. In line: 1 char: 211 + ... t.psd1 '; Exit (Invoke-Neo4j start) + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo: NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId: Microsoft.PowerShell.Commands. WriteErrorException, Invoke-Neo4j

0
source share
2 answers

It was possible to work as a Windows service by running this script using nssm.

powershell.exe -Command "Import-Module C:\Neo4j\bin\Neo4j-Management.psd1; Invoke-Neo4j console"

0
source

I ran into the same problem and got the solution this way:

you need to run PowerShell as an administrator:

  • set NEO4J_HOME D: \ neo4j-community-3.3.0 {Change it in the installation directory}
  • Go to the installation directory:
  • ./bin/neo4j.bat install-service {when starting the server for the first time}
  • ./bin/neo4j.bat start

Screenshot of my powershell

0
source

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


All Articles