centos離線安裝mongodb-database-tools方法詳解
mongodb-database-tools是MongoDB數(shù)據(jù)庫工具的命令行的工具,用于工作與MongoDB部署??梢允褂?code>mongodump和mongoimport
很方便的導(dǎo)入導(dǎo)出備份數(shù)據(jù)。
該數(shù)據(jù)庫工具包括以下的二進(jìn)制文件:
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
因?yàn)槲乙呀?jīng)給mongo添加了變量,所以,這里我直接指定PATH
使其立即生效:source /etc/profile
配置完成。
附:https://www.mongodb.com/docs/database-tools/
到此這篇關(guān)于centos離線安裝mongodb-database-tools方法詳解的文章就介紹到這了,更多相關(guān)centos離線安裝mongodb-database-tools內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Spring Boot中使用MongoDB數(shù)據(jù)庫的方法
MongoDB是一個介于關(guān)系數(shù)據(jù)庫和非關(guān)系數(shù)據(jù)庫之間的產(chǎn)品,是非關(guān)系數(shù)據(jù)庫當(dāng)中功能最豐富,最像關(guān)系數(shù)據(jù)庫的。他支持的數(shù)據(jù)結(jié)構(gòu)非常松散,是類似json的bjson格式,因此可以存儲比較復(fù)雜的數(shù)據(jù)類型。Mongo最大的特點(diǎn)是他支持的查詢語言非常強(qiáng)大2018-02-02Mongodb數(shù)據(jù)庫兩種啟動方法小結(jié)
MongoDB是一種開源的服務(wù)器端NoSQL數(shù)據(jù)庫管理系統(tǒng),它提供了一種靈活的框架,可以快速地存儲、處理和管理大量的數(shù)據(jù),這篇文章主要給大家介紹了關(guān)于Mongodb數(shù)據(jù)庫兩種啟動方法的相關(guān)資料,需要的朋友可以參考下2023-12-12mongodb如何對文檔內(nèi)數(shù)組進(jìn)行過濾的方法步驟
這篇文章主要介紹了mongodb如何對文檔內(nèi)數(shù)組進(jìn)行過濾的方法步驟,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2018-10-10MongoDB 索引創(chuàng)建和查詢優(yōu)化的方法
這篇文章主要介紹了MongoDB 索引創(chuàng)建和查詢優(yōu)化的方法,本文給大家介紹的非常詳細(xì),感興趣的朋友跟隨小編一起看看吧2024-07-07mongodb eval 執(zhí)行服務(wù)器端腳本
在MongoDB的服務(wù)器端可以通過db.eval函數(shù)來執(zhí)行javascript腳本,如我們可以定義一個javascript函數(shù),然后通過db.eval在服務(wù)器端來運(yùn)行!我們前面其實(shí)也接觸過在服務(wù)器段運(yùn)行一個預(yù)定義的javascript腳本的情況,如在$where查詢,執(zhí)行mapreduce任務(wù)等。2015-05-05Mongodb中MapReduce實(shí)現(xiàn)數(shù)據(jù)聚合方法詳解
Mongodb是針對大數(shù)據(jù)量環(huán)境下誕生的用于保存大數(shù)據(jù)量的非關(guān)系型數(shù)據(jù)庫,針對大量的數(shù)據(jù)。接下來通過本文給大家介紹Mongodb中MapReduce實(shí)現(xiàn)數(shù)據(jù)聚合方法詳解,感興趣的朋友一起學(xué)習(xí)吧2016-05-05