neo4j是优秀的图数据库
一、安装
https://neo4j.com/deployment-center/
Adding the Debian repository
1 | Just give me the latest Neo4j versions |
Installing Neo4j
To install Neo4j Community Edition:
1 | sudo apt-get install neo4j |
二、Neo4j与jdk间的版本匹配
Neo4j版本3.x对应java8
Neo4j版本4.x对应java11
Neo4j版本5.x对应java17
三、安装jdk,以debian12为例
https://www.oracle.com/java/technologies/downloads
安装jdk17
1 | sudo apt install openjdk-17-jdk -y |
以arm64安装jdk21.0.5为例
1 | sudo su |
四、neo4j常用设置
设置远程访问
修改/etc/neo4j/neo4j.conf
文件,找到
1 | #server.http.listen_address=:7474 |
忘记密码,怎么办?
修改/etc/neo4j/neo4j.conf
,找到
#dbms.security.auth_enabled=false
去掉前面的#,保存文件,然后sudo neo4j restart
cypher-shell -d system
ALTER USER neo4j SET PASSWORD ‘新密码’;
:exit;
修改/etc/neo4j/neo4j.conf
,改回#dbms.security.auth_enabled=false,然后sudo neo4j restart