摘要: 1. 初始化数据 db.createCollection("t_demo") db.t_demo.insertMany([ {num:[1,2,3], obj: [{name: "zhang1", age: 12}, {name: "li1", age: 13}]}, {num:[1,2], obj 阅读全文
posted @ 2022-02-19 16:23 林宇风 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 使用 docker-compose 参考: https://hub.docker.com/_/mongo version: '3.1' services: mongo: image: mongo restart: always environment: MONGO_INITDB_ROOT 阅读全文
posted @ 2022-02-19 12:32 林宇风 阅读(162) 评论(0) 推荐(0) 编辑