centos离线安装mongodb-database-tools方法详解(centos7安装mongodb4.0)速看

随心笔谈2年前发布 admin
207 0 0

文章摘要

本文介绍了MongoDB的命令和工具,用于数据管理和维护。主要包含以下内容: 1. **数据导入和导出工具**:如`mongodump`用于生成MongoDB数据库的二进制导出文件,`mongorestore`用于从`mongodump`文件中恢复数据,`bsondump`用于将BSON文件转换为JSON格式。 2. **数据恢复工具**:`mongorestore`可将导出的MongoDB文件恢复到新MongoDB实例或MongoOS(MongoDB的原生存储引擎)。 3. **数据导入工具**:`mongoimport`支持从Extended JSON、CSV或TSV格式文件中导入数据,`mongoexport`可生成JSON或CSV格式的输出数据文件。 4. **诊断工具**:`mongostat`提供运行中的MongoDB或MongoOS实例的快速运行状态概览,`mongotop`显示实例处理数据读写的时间分配。 5. **GridFS文件管理工具**:支持在MongoDB实例中使用GridFS对象管理本地文件。 这些工具帮助用户高效地管理和维护MongoDB数据,包括备份、恢复、导入导出、性能监控以及文件管理等关键功能。



Binary Import / Export

    mongodump

Creates a binary export of the contents of a mongod database.

    mongorestore

Restores data from a mongodump database dump into a mongod or mongos

    bsondump

Converts BSON dump files into JSON.

Data Import / Export

    mongoimport

Imports content from an Extended JSON, CSV, or TSV export file.

    mongoexport

Produces a JSON or CSV export of data stored in a mongod instance.

Diagnostic Tools

    mongostat

Provides a quick overview of the status of a currently running mongod or mongos instance.

    mongotop

Provides an overview of the time a mongod instance spends reading and writing data.

GridFS Tools

    mongofiles

Supports manipulating files stored in your MongoDB instance in GridFS objects.

© 版权声明

相关文章