知识图谱(Knowledge Graph)- Neo4j 5.10.0 Docker 安装
知识图谱(Knowledge Graph)- Neo4j 5.10.0 CentOS 安装
https://neo4j.com/docs/operations-manual/5/docker/introduction/
[root@localhost ~]# cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://XXX.mirror.aliyuncs.com"] # 阿里镜像源
}
# 拉取镜像
[root@localhost ~]# docker pull neo4j:5.10.0
# 创建目录
[root@localhost ~]# mkdir -p /opt/neo4j
# --env NEO4J_AUTH=neo4j/password //设定数据库的名字的访问密码
# --env NEO4J_AUTH=none //禁用帐号密码
[root@localhost ~]# docker run --name neo4j \
-p 7474:7474 \
-p 7687:7687 \
-v /opt/neo4j/data:/data \
-v /opt/neo4j/logs:/logs \
-v /opt/neo4j/conf:/var/lib/neo4j/conf \
-v /opt/neo4j/import:/var/lib/neo4j/import \
--env NEO4J_AUTH=neo4j/123456 \
-d neo4j:5.10.0
[root@localhost opt]# tail -f /opt/neo4j/logs/debug.log
[root@localhost ~]# docker restart neo4j
neo4j
[root@localhost ~]#