Install Neo4j 3.0+ as a windows service

一个人想着一个人 提交于 2019-12-12 04:22:43

问题


Anyone tried installing neo4j version 3 in windows as a service? I tired neo4j community version 3.1.0 and 3.2.0 alpha. I am getting following error when try to start the service.

Invoke-Neo4j : Failed to start service 'Neo4j Graph Database - neo4j (neo4j)'. At line:1 char:211 + ... t.psd1'; Exit (Invoke-Neo4j start) + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j


回答1:


Was able to run as a windows service by running this script with nssm.

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




回答2:


I was facing the same issue and got resolved in this way:

you have to run your PowerShell as admin:

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

Screen shot of my powershell



来源:https://stackoverflow.com/questions/41354606/install-neo4j-3-0-as-a-windows-service

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!