摘要: 查看当前数据库:db查看所有数据库:show dbs / show databases切换数据库(不存在则创建,在没有真正插入数据以前,使用show dbs,查看不到):use database_name删除当前数据库:db.dropDatabase() 创建集合: 创建空集合:db.createC 阅读全文
posted @ 2020-03-20 17:33 kog_maw 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1.下载安装包 进入/usr/local/目录下 wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel62-3.4.3.tgz 2.解压缩 tar zxvf mongodb-linux-x86_64-rhel62-3.4.3. 阅读全文
posted @ 2020-03-20 17:28 kog_maw 阅读(180) 评论(0) 推荐(0) 编辑