![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mongodb
qq_41950199
这个作者很懒,什么都没留下…
展开
-
MongoDB数据库的基本操作
创建集合 在指定的数据库创建集合 #指定在Test数据库,没有会自己创建 use Test # 创建test集合 db.createCollection("test",{capped:true,autoIndexId:true,size:512000,max=1000}) capped: 是一个布尔类型,true时创建固定集合,必须指定size。固定集合是指有固定大小的集合,当到达最...原创 2020-04-28 17:19:14 · 315 阅读 · 0 评论 -
centenos7 安装 MongoDB 4.2.6
Linux下面使用MongoDB 下载MongoDB数据库 MongoDB官网 使用XFtp上传到服务器(我是上传到/opt目录下) 安装MongoDB 解压mongodb-linux-x86_64-rhel70-4.2.6.tgz tar -zxvf mongodb-linux-x86_64-rhel70-4.2.6.tgz 改名(方便操作) mv mongodb...原创 2020-04-28 16:11:59 · 433 阅读 · 0 评论