Neo4j安装

1. 安装JDK11

  • 官网下载:oracle官网
    页面拉到下边11部分,需要注册账户,嫌麻烦的可以搜下:跳过注册下载jkd
    Neo4j安装_第1张图片 点击安装,注意安装目录,后面配置环境变量要用(但是好像自动给配置 了,不用自己配置)

如果先安装了17版本的,从应用程序中点击卸载,然后再删除安装的文件

  • 测试是否安装成功
    cmd命令行输入java -version

    Neo4j安装_第2张图片

注意:安装最新的17时,报错了,如下:(还是需要安装11版本的)

```bash
WARNING! You are using an unsupported Java runtime.
* Please use Oracle(R) Java(TM) 11, OpenJDK(TM) 11 to run Neo4j.
* Please see https://neo4j.com/docs/ for Neo4j installation instructions.
Java HotSpot(TM) 64-Bit Server VM warning: Option UseBiasedLocking was deprecated in version 15.0 and will likely be removed in a future release.
2021-11-23 06:41:09.394+0000 INFO  Starting...
Exception in thread "main" java.lang.LinkageError: Cannot to link java.nio.DirectByteBuffer
        at org.neo4j.internal.unsafe.UnsafeUtil.(UnsafeUtil.java:124)
        at org.neo4j.memory.RuntimeInternals.guessHeaderSize(RuntimeInternals.java:158)
        at org.neo4j.memory.RuntimeInternals.(RuntimeInternals.java:53)
        at org.neo4j.memory.HeapEstimator.(HeapEstimator.java:103)
        at org.neo4j.internal.collector.RecentQueryBuffer.(RecentQueryBuffer.java:37)
        at org.neo4j.graphdb.factory.module.GlobalModule.(GlobalModule.java:211)
        at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.createGlobalModule(DatabaseManagementServiceFactory.java:259)
        at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:126)
        at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:36)
        at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:134)
        at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:90)
        at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:34)
Caused by: java.lang.IllegalAccessException: module java.base does not open java.nio to unnamed module @2f7298b
        at java.base/java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:259)
        at org.neo4j.internal.unsafe.UnsafeUtil.(UnsafeUtil.java:107)
        ... 11 more
2021-11-23 06:41:09.515+0000 INFO  Neo4j Server shutdown initiated by request
2021-11-23 06:41:09.516+0000 INFO  Stopped.
Unexpected process failure. See log for info.
Run with '--verbose' for a more detailed error message.
```

2. 安装Neo4j

  • 下载:Neo4j官网
    选择社区版下载,目前没发现版本要求,下载的最新版4.3.7,下载好后进行解压,记住解压后的位置
    Neo4j安装_第3张图片

  • 配置环境变量
    在系统变量->path中新增,输入C:\Program Files\neo4j-community-4.3.7\bin

    Neo4j安装_第4张图片

  • 测试是否安装成功
    命令行输入neo4j.bat console,然后复制地址在浏览器中打开,第一次启动有默认用户名和密码:neo4j neo4j ,之后会提示修改密码,不要忘记密码

    Neo4j安装_第5张图片
    Neo4j安装_第6张图片安装过程中用到的安装包:
    链接:https://pan.baidu.com/s/1CeLz2DJEP-2prXliTFk_lQ
    提取码:s05u

你可能感兴趣的:(系统,软件与环境配置,python,tensorflow,linux,知识图谱)