centos離線安裝mongodb-database-tools方法詳解
mongodb-database-tools是MongoDB數(shù)據庫工具的命令行的工具,用于工作與MongoDB部署??梢允褂?code>mongodump和mongoimport很方便的導入導出備份數(shù)據。
該數(shù)據庫工具包括以下的二進制文件:
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
配置環(huán)境變量: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內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
Spring Boot中使用MongoDB數(shù)據庫的方法
MongoDB是一個介于關系數(shù)據庫和非關系數(shù)據庫之間的產品,是非關系數(shù)據庫當中功能最豐富,最像關系數(shù)據庫的。他支持的數(shù)據結構非常松散,是類似json的bjson格式,因此可以存儲比較復雜的數(shù)據類型。Mongo最大的特點是他支持的查詢語言非常強大2018-02-02
MongoDB 索引創(chuàng)建和查詢優(yōu)化的方法
這篇文章主要介紹了MongoDB 索引創(chuàng)建和查詢優(yōu)化的方法,本文給大家介紹的非常詳細,感興趣的朋友跟隨小編一起看看吧2024-07-07
Mongodb中MapReduce實現(xiàn)數(shù)據聚合方法詳解
Mongodb是針對大數(shù)據量環(huán)境下誕生的用于保存大數(shù)據量的非關系型數(shù)據庫,針對大量的數(shù)據。接下來通過本文給大家介紹Mongodb中MapReduce實現(xiàn)數(shù)據聚合方法詳解,感興趣的朋友一起學習吧2016-05-05

