访问 NEO4J CE 3.x 中的 neo4j-shell
从 Neo4j 3.0 开始,Windows 和 OSX 的桌面安装程序不再支持访问 neo4j-shell
。
要使用 neo4j-shell
,您需要从以下地址下载 TAR/ZIP 发行版:https://neo4j.ac.cn/download/other-releases/
对于导入包含以分号分隔的 Cypher 命令的文件,您也可以使用
-
CyCli-Shell (Python) (
pip install cycli
)
官方 Neo4j-Docker 镜像也可以派上用场。
$ docker pull neo4j
$ CONTAINER=$(docker run -d --name neo4j -p 7474:7474 -v /path/to/data:/data -v /path/to/csv-files:/var/lib/neo4j/import neo4j)
$ echo "Running Neo4j as $CONTAINER, waiting for startup"
$ sleep 10
# to import a file from `/path/to/csv-files/import.cypher`
$ docker exec $CONTAINER /var/lib/neo4j/bin/neo4j-shell -f /var/lib/neo4j/import/import.cypher
# or for interactive mode
$ docker exec -ti $CONTAINER /var/lib/neo4j/bin/neo4j-shell
此页面有帮助吗?