这篇文章主要介绍了centos离线安装mongodb-database-tools方法详解的相关资料,需要的朋友可以参考下
mongodb-database-tools是MongoDB数据库工具的命令行的工具,用于工作与MongoDB部署。可以使用mongodump和mongoimport很方便的导入导出备份数据。
该数据库工具包括以下的二进制文件:
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. |
下载地址:https://www.mongodb.com/try/download/database-tools

解压
tar zxvf mongodb-database-tools-rhel70-x86_64-100.6.1.tgz移动到目录,这里可以和mongo放到一个目录,方便管理查找
mv mongodb-database-tools-rhel70-x86_64-100.6.1 /usr/local/mongodb/tools配置环境变量:vi /etc/profile在末尾添加
export MONGODB_TOOLS=/usr/local/mongodb/tools
PATH=$PATH:$MONGODB_TOOLS/bin因为我已经给mongo添加了变量,所以,这里我直接指定PATH

使其立即生效:source /etc/profile

配置完成。
附:https://www.mongodb.com/docs/database-tools/
到此这篇关于centos离线安装mongodb-database-tools方法详解的文章就介绍到这了,更多相关centos离线安装mongodb-database-tools内容请搜索编程学习网以前的文章希望大家以后多多支持编程学习网!
本文标题为:centos离线安装mongodb-database-tools方法详解
基础教程推荐
- centos7中redis安装 2023-09-12
- Redis中的BigKey问题排查与解决思路详解 2023-07-13
- SQL数据库十四种案例介绍 2023-08-12
- MySQL实现批量插入测试数据的方式总结 2023-08-12
- Redis五种数据类型详解 2023-07-13
- 还原Sql Server数据库BAK备份文件的3种方式以及常见错误总结 2023-07-29
- 关于对MongoDB索引的一些简单理解 2023-07-15
- Oracle 数据库启动过程的三阶段、停库四种模式详解 2023-07-23
- mysql查询FIND_IN_SET REGEXP实践示例 2023-07-27
- 在阿里云CentOS 6.8上安装Redis 2023-09-12
