图数据库排名
https://db-engines.com/en/ranking/graph+dbms
1、下载社区版
https://neo4j.com/download-center/#releases
2、解压缩,启动
[root@elastic1 opt]# tar -zxvf neo4j-community-3.5.11-unix.tar.gz
[root@elastic1 neo4j-community-3.5.11]# bin/neo4j start
Active database: graph.db
Directories in use:
home: /opt/neo4j-community-3.5.11
config: /opt/neo4j-community-3.5.11/conf
logs: /opt/neo4j-community-3.5.11/logs
plugins: /opt/neo4j-community-3.5.11/plugins
import: NOT SET
data: /opt/neo4j-community-3.5.11/data
certificates: /opt/neo4j-community-3.5.11/certificates
run: /opt/neo4j-community-3.5.11/run
Starting Neo4j.
Started neo4j (pid 25395). It is available at http://0.0.0.0:7474/
There may be a short delay until the server is ready.
See /opt/neo4j-community-3.5.11/logs/neo4j.log for current status.
[root@elastic1 neo4j-community-3.5.11]#
[root@elastic1 neo4j-community-3.5.11]# bin/neo4j status
Neo4j is running at pid 25395
[root@elastic1 neo4j-community-3.5.11]#
http://10.17.12.158:7474/browser/
3、简单操作
(1)添加节点
创建一个Person节点,其有属性 name 和age
create(:Person{name:"Lee",age:18})
(2)查询一个节点
match(n:Person{name:"Lee"})return n