不多说,直接上干货!
参考博客
http://blog.csdn.net/u012318074/article/details/72793914 (表示感谢)
前期博客
Neo4j沙盒实验申请过程步骤(图文详解)
Ubuntu14.04下Neo4j图数据库官网安装部署步骤(图文详解)(博主推荐)
首先,查看下你的操作系统的版本。
root@zhouls-virtual-machine:~# cat /etc/issue Ubuntu 14.04.4 LTS l root@zhouls-virtual-machine:~#
这篇文章就来介绍一下我将 Neo4j 沙盒中的数据导入到自己的 Neo4j 数据库的方法。大家可以清楚的看到沙盒数据公开了很多,我这里,仅此network-management。
使用 github 上的源数据:https://github.com/neo4j-contrib/sandbox-guides
Neo4j browser guides for sandbox instances
Available Use Cases
- us-elections-2016
- blank-sandbox
Render / deploy guides for a use case
-
Clone this repo
git clone git@github.com:neo4j-contrib/sandbox-guides.git
-
cd sandbox-guides
-
git submodule init
-
git submodule update
-
Edit
{USE-CASE}/{GUIDE-NAME-HERE}.adoc
-
{USE-CASE}/render.sh [publish]
-
Open Neo4j Browser and run
:play http://localhost:8001/{USE-CASE}
第一步:克隆下载
选择一个要存放这个数据的文件夹,我存放的目录为/usr/local/app/neo4j-community-3.2.0/data/databases,使用 Git 方法下载文件,在目录下执行 root@nssa-sensor1:/opt/neo4j/neo4j-community-3.2.0/data/databases# git clone https://github.com/neo4j-contrib/sandbox-guides.git
root@zhouls-virtual-machine:/usr/local/app/neo4j-community-3.2.0# pwd /usr/local/app/neo4j-community-3.2.0 root@zhouls-virtual-machine:/usr/local/app/neo4j-community-3.2.0# ls bin conf import LICENSES.txt logs plugins run certificates data lib LICENSE.txt NOTICE.txt README.txt UPGRADE.txt root@zhouls-virtual-machine:/usr/local/app/neo4j-community-3.2.0# cd data/ root@zhouls-virtual-machine:/usr/local/app/neo4j-community-3.2.0/data# ls databases dbms root@zhouls-virtual-machine:/usr/local/app/neo4j-community-3.2.0/data# cd databases/ root@zhouls-virtual-machine:/usr/local/app/neo4j-community-3.2.0/data/databases# ls graph.db root@zhouls-virtual-machine:/usr/local/app/neo4j-community-3.2.0/data/databases# git clone https://github.com/neo4j-contrib/sandbox-guides.git
再次执行即可,这个很简单。