本文介绍了Neo4j 3.0.4 Enterprise试用版无法在Windows中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Neo4j 3.0.4企业版,同时尝试安装服务或启动其显示以下错误.也曾在其他机器上尝试过,如何解决呢?
Neo4j 3.0.4 enterprise version, while trying to install-service or start its show below error. Have tried in different machine also, how to resolve this ?
E:\Neo4j\neo4j-enterprise-3.0.4\bin>neo4j.bat install-service -verbose
VERBOSE: Neo4j Root is 'E:\Neo4j\neo4j-enterprise-3.0.4'
VERBOSE: Neo4j Server Type is 'Enterprise'
VERBOSE: Neo4j Version is '3.0.4'
VERBOSE: Neo4j Database Mode is ''
VERBOSE: Install command specified
VERBOSE: Neo4j Windows Service Name is neo4j
VERBOSE: Java detected at 'C:\Program Files\Java\jdk1.8.0_92\jre\bin\java.exe'
VERBOSE: Executing C:\Program Files\Java\jdk1.8.0_92\jre\bin\java.exe -version
VERBOSE: Java version response: java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
VERBOSE: Java Version detected as 1.8.0_92
VERBOSE: Neo4j Windows Service Name is neo4j
VERBOSE: Reading JVM settings from neo4j-wrapper.conf
Invoke-Neo4j : Method invocation failed because [System.Object[]] doesn't contain a method named 'contains'.
At line:1 char:221
+ try { Unblock-File -Path 'E:\Neo4j\neo4j-enterprise-3.0.4\bin\Neo4j-Management\*.*' -ErrorAction 'SilentlyContinue' } catch {};Import-Module 'E:\Neo4j\neo4j-enterprise-3.0.4\bin\Neo4j-Management.psd1'; Exit (Invoke-Neo4j <<<< install-service -verbose)
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j
推荐答案
bin/Neo4j-Management文件夹中的Merge-Neo4jJavaSettings.ps1文件在第68行出现语法错误:
The Merge-Neo4jJavaSettings.ps1 file in the bin/Neo4j-Management folder has a syntax error in line #68:
If (-not $Source.contains($thisSetting)) {
应该是
If (-not $Source -contains $thisSetting) {
记录下来,这对于我来说是Community版本,因此这两个版本似乎都存在问题.
For the record, this is occurring for me with the Community edition, so it appears to be a problem with both versions.
这篇关于Neo4j 3.0.4 Enterprise试用版无法在Windows中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!