安装Neo4j

jdk1.8对应的neo4j的版本是3.5

自行下载3.5版本的zip文件

地址

解压添加环境变量

变量名:NEO4J_HOME

变量值:D:\neo4j-community-3.5.0     (你自己的地址)

 PATH添加:

%NEO4J_HOME%\bin     (如果是挨着的注意前后英文分号)

 此时进入bin目录下运行报错:

neo4j.bat start

Invoke-Neo4j : Could not find the Windows Service Name for Neo4j (dbms.windows_service_name in neo4j.conf)
所在位置 行:1 字符: 195
+ ... community-3.5.0\bin\Neo4j-Management.psd1'; Exit (Invoke-Neo4j start)
+                                                       ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j 

 解决办法:

进入该目录:

D:\neo4j-community-3.5.0\bin\Neo4j-Management

打开 Invoke-Neo4jUtility.ps1文件:加入红色部分

process
  {
    $javaPath = 'D:\jdk1.8'
    # Determine the Neo4j Home Directory.  Uses the NEO4J_HOME environment variable or a parent directory of this script
    $Neo4jHome = Get-Neo4jEnv 'NEO4J_HOME'
    if (($Neo4jHome -eq $null) -or (-not (Test-Path -Path $Neo4jHome))) {
      $Neo4jHome = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent

保存

 命令行窗口进入bin运行:

neo4j.bat install-service

neo4j.bat start

即可

打开浏览器地址栏输入:

neo4j@bolt://localhost:7687 - Neo4j Browser

 账号密码都是neo4j,后需更改密码

相关推荐

  1. 安装Neo4j

    2023-12-21 08:00:06       44 阅读
  2. docker安装Neo4j

    2023-12-21 08:00:06       11 阅读
  3. CentOS7安装Neo4j

    2023-12-21 08:00:06       44 阅读
  4. Neo4j介绍

    2023-12-21 08:00:06       37 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-21 08:00:06       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-21 08:00:06       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-21 08:00:06       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-21 08:00:06       18 阅读

热门阅读

  1. 【Qt】Qt Creator 警告: Unused parameter ‘xxx‘

    2023-12-21 08:00:06       38 阅读
  2. redis 从0到1完整学习 (三):redis 数据结构

    2023-12-21 08:00:06       43 阅读
  3. Ubuntu2204一句话下载VSCode

    2023-12-21 08:00:06       53 阅读
  4. 前端工程化面试题

    2023-12-21 08:00:06       27 阅读
  5. vue爷孙组件传参v-bind=“$attrs“ v-on=“$listeners“

    2023-12-21 08:00:06       31 阅读
  6. Linux|shell编程|实验总结|期末考查试题

    2023-12-21 08:00:06       29 阅读
  7. Wireshark在移动网络中的应用

    2023-12-21 08:00:06       26 阅读