Ubuntu 20.04 上安装 neo4j

编程入门 行业动态 更新时间:2024-10-15 12:32:29

<a href=https://www.elefans.com/category/jswz/34/1771209.html style=Ubuntu 20.04 上安装 neo4j"/>

Ubuntu 20.04 上安装 neo4j


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

2. 添加Debian资源库。

Java 1.8.xx版本对应Neo4j 3.xx版本:

(1)wget -O - .gpg.key | sudo apt-key add -
(2)echo 'deb stable 3.5' | 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. 使用neo4j。

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


References:

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

更多推荐

Ubuntu 20.04 上安装 neo4j

本文发布于:2023-12-07 09:41:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1670874.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Ubuntu   neo4j

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!