Neo4j图数据库安装
一、下载资源包
安装Neo4j数据库需要安装neo4j、jdk17、cypher-shell
neo4j-5.17.0下载链接:https://go.neo4j.com/download-thanks.html?edition=community&release=5.17.0&flavour=rpm
JDK17下载链接:https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm
安装cypher-shell:
# 安装签名
rpm --import https://debian.neo4j.com/neotechnology.gpg.key
# 添加仓库
cat <<EOF> /etc/yum.repos.d/neo4j.repo
[neo4j]
name=Neo4j Yum Repo
baseurl=https://yum.neo4j.com/stable/5
enabled=1
gpgcheck=1
EOF
# 安装cypher-shell
yum install -y cypher-shell
二、安装Neo4j
安装顺序:
- JDK 17
rpm -ivh jdk-17_linux-x64_bin.rpm
- cypher-shell
# 参考上述安装cypher-shell内容
- neo4j
rpm -ivh neo4j-5.17.0-1.noarch.rpm
三、启动及初始化
1、修改配置项
vim /etc/neo4j/neo4j.conf
# 修改第98行,将访问地址开放,便于其他服务器访问
server.default_listen_address=0.0.0.0
2、启动
systemctl start neo4j
3、修改用户名密码
cypher-shell
# 根据提示修改密码,初始用户名为neo4j
4、验证
浏览器访问 http://ip:7474,使用用户名密码登录验证