Docker安装部署Neo4j的保姆级教程
作者:硕风和炜
本文主要介绍了Docker安装部署Neo4j的保姆级教程,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
🚩 Docker Hub查找镜像
🌟 选择对应的镜像下载
🌟 选择对应的版本,直接复制命令
🌟 进入文件夹,并创建文件夹
[root@VM-4-9-centos ~]# cd /mydata/ [root@VM-4-9-centos mydata]# kk -bash: kk: command not found [root@VM-4-9-centos mydata]# ll total 44 drwxrwxrwx 5 root root 4096 Nov 25 2022 elasticsearch drwxr-xr-x 4 root root 4096 Oct 25 2022 fastdfs drwxr-xr-x 2 root root 4096 Oct 26 2022 haproxy drwxr-xr-x 5 root root 4096 Oct 10 2022 mysql drwxr-xr-x 3 root root 4096 Nov 17 2022 nacos drwxr-xr-x 6 root root 4096 Oct 11 2022 nginx drwxr-xr-x 4 root root 4096 Oct 10 2022 redis drwxr-xr-x 8 root root 4096 Oct 18 2022 redis_cluster drwxr-xr-x 5 root root 4096 Nov 2 2022 rocketmq drwxr-xr-x 6 lighthouse root 4096 Oct 18 2022 zookeeper drwxr-xr-x 5 root root 4096 Oct 21 2022 zookeeper_kafka [root@VM-4-9-centos mydata]# mkdir neo4j/data mkdir: cannot create directory ‘neo4j/data': No such file or directory [root@VM-4-9-centos mydata]# mkdir -p neo4j/data [root@VM-4-9-centos mydata]# ll total 48 drwxrwxrwx 5 root root 4096 Nov 25 2022 elasticsearch drwxr-xr-x 4 root root 4096 Oct 25 2022 fastdfs drwxr-xr-x 2 root root 4096 Oct 26 2022 haproxy drwxr-xr-x 5 root root 4096 Oct 10 2022 mysql drwxr-xr-x 3 root root 4096 Nov 17 2022 nacos drwxr-xr-x 3 root root 4096 Jun 8 10:49 neo4j drwxr-xr-x 6 root root 4096 Oct 11 2022 nginx drwxr-xr-x 4 root root 4096 Oct 10 2022 redis drwxr-xr-x 8 root root 4096 Oct 18 2022 redis_cluster drwxr-xr-x 5 root root 4096 Nov 2 2022 rocketmq drwxr-xr-x 6 lighthouse root 4096 Oct 18 2022 zookeeper drwxr-xr-x 5 root root 4096 Oct 21 2022 zookeeper_kafka [root@VM-4-9-centos mydata]# mkdir -p neo4j/logs [root@VM-4-9-centos mydata]#
🌟 Docker拉取neo4j相关版本的镜像
docker pull neo4j:3.5.22-community
🌟 Docker运行neo4j镜像
docker run -d -p 7474:7474 -p 7687:7687 --name neo4j -e "NEO4J_AUTH=neo4j/123456" -v /usr/local/soft/neo4j/data:/mydata/data -v /usr/local/soft/neo4j/logs:/mydata/logs -v /usr/local/soft/neo4j/conf:/var/lib/neo4j/conf -v /usr/local/soft/neo4j/import:/var/lib/neo4j/import neo4j:3.5.22-community
🌟 访问测试,用户名密码登录
http://ip地址:7474/browser/
🌟 访问测试,用户名密码登录
🌟 总结
到此这篇关于Docker安装部署Neo4j的保姆级教程的文章就介绍到这了,更多相关Docker安装部署Neo4j内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!