【linux下的neo4j安装】

本文记录了在Linux系统中安装Neo4j的详细步骤,包括从官方下载中心选择版本,使用curl命令下载,解压并进行配置。在启动过程中遇到端口被占用的问题,通过修改配置文件并更换端口成功启动。最后,作者提醒读者注意检查和避免端口冲突。
摘要由CSDN通过智能技术生成

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档


一、neo4j

暂时项目用到的图数据库,具体也没啥可记录的

二、安装步骤

1.网页选择版本

可以直接在这里选择版本
https://neo4j.com/download-center/#community
在这里插入图片描述
这样相比起来版本内容会比较清晰,会有一些适配说明

2.直接curl下载指定版本

命令:

curl -O http://dist.neo4j.org/neo4j-community-3.5.27-unix.tar.gz
tar -axvf neo4j-community-3.5.27-unix.tar.gz

解压后进入可以看到:
在这里插入图片描述
进入bin可以看到:
在这里插入图片描述
但是在这之前需要先去修改conf文件:
(还有一些我看其他人的文章提到了,但是我这个版本有些参数没找到,主要修改的就是把项目这些注掉一些释放一些,后面对host又改一遍)

23 #dbms.directories.import=import
55 dbms.connectors.default_listen_address=0.0.0.0
72 dbms.connector.bolt.listen_address=:7687
76 dbms.connector.http.listen_address=:7474
80 dbms.connector.https.listen_address=:7473
246 dbms.security.allow_csv_import_from_file_urls=true
266 dbms.read_only=false

在bin下执行:
./neo4j start
在这里插入图片描述
./neo4j console
但是这步出错:
在这里插入图片描述
2022-08-17 08:30:20.201+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component ‘org.neo4j.server.database.LifecycleManagingDatabase@4248e66b’ was successfully initialized, but failed to start. Please see the attached cause exception “Address 0.0.0.0:7687 is already in use, cannot bind to it.”. Starting Neo4j failed: Component ‘org.neo4j.server.database.LifecycleManagingDatabase@4248e66b’ was successfully initialized, but failed to start. Please see the attached cause exception “Address 0.0.0.0:7687 is already in use, cannot bind to it.”.

就是换个端口:
在这里插入图片描述
再看就可以了,之前的端口是可能其他人用着


总结

暂时这样吧

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值