Ubuntu 20.04 上安装和配置 neo4j

  1. 进入要安装neo4j的ubuntu环境。

  2. 添加Debian资源库。

java 1.8.xx版本对应neo4j 3.xx版本(jdk 11版本对应neo4j 4.xx版本):

(1)wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -

(2)echo 'deb https://debian.neo4j.com stable 3.5' | sudo tee /etc/apt/sources.list.d/neo4j.list(或者:echo 'deb https://debian.neo4j.com stable 4.4' | sudo tee /etc/apt/sources.list.d/neo4j.list)

(3)sudo apt-get update

  1. 安装社区版neo4j:

sudo apt-get install neo4j

  1. 此时可查看其运行状态:

sudo systemctl status neo4j.service

  1. 设置为在系统重新启动时启动:

(1)sudo systemctl enable neo4j.service

(2)sudo systemctl start neo4j.service

*(3)sudo systemctl status neo4j.service

  1. 连接和配置neo4j。

(1)测试连接到数据库:

cypher-shell。

默认neo4j 用户名和 neo4j 密码。

:exit。

  1. 修改密码。

~$ cypher-shell
username: neo4j
password: neo4j

neo4j> CALL dbms.changePassword('yournewpassword');
0 rows available after 24 ms, consumed after another 0 ms
neo4j>

  1. 使用neo4j。

cypher-shell

登录到 neo4j后,就可以通过命令行进行查询以及将实体和关系添加到数据库中了。

neo4j>

References:

https://blog.csdn.net/BigData_Mining/article/details/122308250

如何在Ubuntu20.04上安装和配置Neo4j - 菜鸟教程

相关推荐
行云流水剑12 分钟前
【学习记录】在 Ubuntu 中将新硬盘挂载到 /home 目录的完整指南
服务器·学习·ubuntu
藥瓿亭17 分钟前
K8S认证|CKS题库+答案| 7. Dockerfile 检测
运维·ubuntu·docker·云原生·容器·kubernetes·cks
yvestine41 分钟前
自然语言处理——文本表示
人工智能·python·算法·自然语言处理·文本表示
vortex51 小时前
探索 Shell:选择适合你的命令行利器 bash, zsh, fish, dash, sh...
linux·开发语言·bash·shell·dash
zzc9211 小时前
MATLAB仿真生成无线通信网络拓扑推理数据集
开发语言·网络·数据库·人工智能·python·深度学习·matlab
编程有点难1 小时前
Python训练打卡Day43
开发语言·python·深度学习
GalaxyPokemon1 小时前
LeetCode - 148. 排序链表
linux·算法·leetcode
2301_805054561 小时前
Python训练营打卡Day48(2025.6.8)
pytorch·python·深度学习
LjQ20401 小时前
网络爬虫一课一得
开发语言·数据库·python·网络爬虫
懒羊羊大王呀1 小时前
Ubuntu20.04中 Redis 的安装和配置
linux·redis