Ubuntu 20.04 上安装 neo4j
1. 进入要安装neo4j的ubuntu环境。
2. 添加Debian资源库。
Java 1.8.xx版本对应Neo4j 3.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
(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:
https://blog.csdn.net/BigData_Mining/article/details/122308250
如何在Ubuntu20.04上安装和配置Neo4j - 菜鸟教程