neo4j Cheatsheet
neo4j
使用笔记
安装
cat <<EOF> /etc/yum.repos.d/neo4j.repo
[neo4j]
name=Neo4j Yum Repo
baseurl=http://yum.neo4j.org/stable
enabled=1
gpgcheck=0
EOF
systemctl enable neo4j
systemctl start neo4j
监听配置
vi /etc/neo4j/neo4j.conf
dbms.connectors.default_listen_address=0.0.0.0
改密码
访问:http://localhost:7474
进入控制台
cypher-shell -a bolt://localhost:9000
在3.0以前版本是
neo4j-admin
导出/导入数据
https://neo4j.com/docs/operations-manual/current/tools/dump-load/
3.0以前
neo4j-shell dump > backup.dump
3.0以后
neo4j stop
neo4j-admin dump --database=graph.db --to=/backups/graph.db/2016-10-02.dump
neo4j-admin load --from=/backups/graph.db/2016-10-02.dump --database=graph.db --force