当前位置:首页 > 编程笔记 > 正文
已解决

Ubuntu 20.04 上安装和配置 neo4j

来自网友在路上 133833提问 提问时间:2023-10-23 01:48:13阅读次数: 33

最佳答案 问答题库338位专家为你答疑解惑


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
3. 安装社区版neo4j:

sudo apt-get install neo4j
4. 此时可查看其运行状态:

sudo systemctl status neo4j.service
5. 设置为在系统重新启动时启动:

(1)sudo systemctl enable neo4j.service

(2)sudo systemctl start neo4j.service

*(3)sudo systemctl status neo4j.service

6. 连接和配置neo4j。

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

cypher-shell。
默认neo4j 用户名和 neo4j 密码。

:exit。

7. 修改密码。

~$ cypher-shell
username: neo4j
password: neo4j

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

8. 使用neo4j。

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

neo4j> 


References:

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

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

查看全文

99%的人还看了

猜你感兴趣

版权申明

本文"Ubuntu 20.04 上安装和配置 neo4j":http://eshow365.cn/6-22061-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!