neo4j安装APOC、aglo插件

安装方法

只要下载.jar这一个插件包就好了,将下载好的.jar文件直接放到neo4j安装目录下的plugins文件夹目录下,再修改一下配置文件就可以了。

1、插件下载:

APOC

国内地址:http://doc.we-yun.com:1008/doc/neo4j-apoc/ 

https://github.com/neo4j-contrib/neo4j-apoc-procedures

注意neo4j软件版本要与APOC插件匹配,否则启动neo4j可能报错

apoc versionneo4j version

4.0.0.16#

4.0.6 (4.0.x)

3.5.0.11

3.5.16 (3.5.x)

3.4.0.6

3.4.12 (3.4.x)

3.3.0.4

3.3.6 (3.3.x)

3.2.3.6

3.2.9 (3.2.x)

3.1.3.9

3.1.7 (3.1.x) 

 aglo

Releases · neo4j-contrib/neo4j-graph-algorithms · GitHub

 2.将.jar文件复制到neo4j安装目录下的plugins文件夹下

 

 

3.修改配置文件 

将 dbms.security.auth_enabled=false 的注释去掉

 

 再在文件末尾添加如下参数:

dbms.security.procedures.unrestricted=apoc.*,algo.*
dbms.memory.pagecache.size=10g
dbms.memory.heap.initial_size=1g
dbms.memory.heap.max_size=4g

 

 启动neo4j,查看插件版本

到此,插件安装完毕,可以启动neo4j了

查看APOC版本

RETURN apoc.version() 

插件版本不匹配的话,启动会报错:

Caused by: org.neo4j.kernel.extension.FailedToBuildKernelExtensionException: Failed to build kernel extension KernelExtension:ApocKernelExtensionFactory[APOC] because it is compiled with a reference to a class, method, or field, that is not in the class path: 'org/neo4j/kernel/impl/logging/LogService'. The most common cause of this problem, is that Neo4j has been upgraded without also upgrading allinstalled extensions, such as APOC. Make sure that all of your extensions are build against your specific version of Neo4j.

  • 6
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值