我从开始Neo4j,docker run neo4j当我在容器中运行时cypher-shell "show database neo4j",状态为online。然而,运行
neo4j status
Run Code Online (Sandbox Code Playgroud)
给出Neo4j is not running.
我对此有点困惑。我怎样才能停止Neo4j容器中的?neo4j stop显然不起作用。
Krz*_*zon -1
对于 make dump 数据库,我使用的是这个。首先你必须停止 neo4j 容器。
docker run --interactive --tty --rm \
--volume=<dir_where_data_is_stored>/data:/data \
--volume=<dir_where_backups_will_stored>/backups:/backups \
neo4j:3.5 \
neo4j-admin dump --to=/backups/<dump_name>.dump
Run Code Online (Sandbox Code Playgroud)
我有错误
命令失败:无法转储数据库:AccessDeniedException:/backups
所以我只是改变了
--to=/backups/database.dump
Run Code Online (Sandbox Code Playgroud)
到
--to=/data/database.dump
Run Code Online (Sandbox Code Playgroud)
参考: https: //neo4j.com/docs/operations-manual/current/docker/maintenance/