赞
踩
进入Neo4j官网下载页面
向下滑动找到 Graph Database Self-Managed
选择 社区版(COMMUNITY)
选择 Linux / Mac Executable Neo4j 5.17.0 (tar)
单机下载 Download
tar -axvf neo4j-community-5.17.0-unix.tar.gz
我在/root
目录下解压会得到
/root/neo4j-community-5.17.0
配置conf文件
vim /root/neo4j-community-5.17.0//conf/neo4j.conf
输入 /default_listen_address
找到目标需要修改的目标位置
删除前面的注释符号保存即可
/root/neo4j-community-5.17.0/bin/neo4j start
得到
which: no java in (/usr/local/Ascend/atb/latest/atb/bin:/usr/local/Ascend/nnae/latest/bin:/usr/local/Ascend/nnae/latest/compiler/ccec_compiler/bin:/usr/local/Ascend/ascend-toolkit/latest/bin:/usr/local/Ascend/ascend-toolkit/latest/compiler/ccec_compiler/bin:/root/anaconda3/bin:/root/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
Error: JAVA_HOME is not defined correctly.
We cannot execute
进入JAVA17官网
昇腾服务器下载第一个,其他服务器下载第二个
这里新建一个java文件夹,方便后续随时切换java版本
mkdir /root/java
cd /root/java
tar -zxvf jdk-17_linux-aarch64_bin.tar.gz
接下来配置环境变量,打开/etc/profile
vim /etc/profile
将以下内容添加到文件最后
#Java环境变量配置
export JAVA_HOME="/root/java/jdk-17.0.10"
export PATH="$JAVA_HOME/bin:$PATH"
export CLASSPATH=".:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar"
#neo4j环境变量配置
PATH="/root/neo4j-community-5.17.0/bin:$PATH"
然后按Esc,输入:wq
保存
# 更新环境变量文件,使修改立即生效
source /etc/profile
# 查看jdk配置是否正确
java -version
得到以下内容即可
java version "17.0.10" 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.10+11-LTS-240, mixed mode, sharing)
这次配置了路径可以直接启动
neo4j start
得到
Directories in use:
home: /root/neo4j-community-5.17.0
config: /root/neo4j-community-5.17.0/conf
logs: /root/neo4j-community-5.17.0/logs
plugins: /root/neo4j-community-5.17.0/plugins
import: /root/neo4j-community-5.17.0/import
data: /root/neo4j-community-5.17.0/data
certificates: /root/neo4j-community-5.17.0/certificates
licenses: /root/neo4j-community-5.17.0/licenses
run: /root/neo4j-community-5.17.0/run
Starting Neo4j.
Started neo4j (pid:2159862). It is available at http://localhost:7474
There may be a short delay until the server is ready.
输入服务器IP地址+:7474
初始账号:neo4j
密码:neo4j
第一次使用建议根据Try Neo4j with live data
过一遍
参考langchain,现在RAG已经可以连接知识图谱了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。