Neo4j工作正常,但今天它未能启动。我试图卸载它并再次安装它,这是我收到的错误消息:
> bin\neo4j.bat install-service -verbose
VERBOSE: Neo4j Root is 'C:\Users\UserB\Documents\neo4j-community-3.1.4'
VERBOSE: Neo4j Server Type is 'Community'
VERBOSE: Neo4j Version is '3.1.4'
VERBOSE: Neo4j Database Mode is ''
WARNING: This command does not appear to be running with administrative rights. Some commands may fail e.g. Start/Stop
VERBOSE: Install command specified
VERBOSE: Neo4j Windows Service Name is neo4j
VERBOSE: Java detected at 'C:\Devel\jdk18\jre\bin\java.exe'
VERBOSE: Executing C:\Devel\jdk18\jre\bin\java.exe -version
Invoke-Neo4j : Process with an Id of 2092428 is not running.
At line:1 char:261
+ try { Unblock-File -Path 'C:\Users\UserB\Documents\neo4j-community-3.1.4\bin\Neo4j-Management\*.*' -ErrorAction 'SilentlyContinue' } catch {};Import-Module 'C:\Users\UserB\Documents\neo4j-community-3.1.4\bin\Neo4j-Management.ps d1'; Exit (Invoke-Neo4j <<<< install-service -verbose)
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-N
我发现可能是因为Merge-Neo4jJavaSettings.ps1
中的语法错误,因为它解释为here。但我在该文件中没有相同的代码,所以我无法解决问题。
答案 0 :(得分:3)
警告线表示您应该使用管理员权限运行它。 在资源管理器中打开文件夹,然后在我写的时候,右键单击以获得建议打开管理外壳的上下文菜单。