centos離線安裝mongodb-database-tools方法詳解
mongodb-database-tools是MongoDB數(shù)據(jù)庫(kù)工具的命令行的工具,用于工作與MongoDB部署。可以使用mongodump
和mongoimport
很方便的導(dǎo)入導(dǎo)出備份數(shù)據(jù)。
該數(shù)據(jù)庫(kù)工具包括以下的二進(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
移動(dòng)到目錄,這里可以和mongo放到一個(gè)目錄,方便管理查找
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)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Spring Boot中使用MongoDB數(shù)據(jù)庫(kù)的方法
MongoDB是一個(gè)介于關(guān)系數(shù)據(jù)庫(kù)和非關(guān)系數(shù)據(jù)庫(kù)之間的產(chǎn)品,是非關(guān)系數(shù)據(jù)庫(kù)當(dāng)中功能最豐富,最像關(guān)系數(shù)據(jù)庫(kù)的。他支持的數(shù)據(jù)結(jié)構(gòu)非常松散,是類(lèi)似json的bjson格式,因此可以存儲(chǔ)比較復(fù)雜的數(shù)據(jù)類(lèi)型。Mongo最大的特點(diǎn)是他支持的查詢(xún)語(yǔ)言非常強(qiáng)大2018-02-02Mongodb數(shù)據(jù)庫(kù)兩種啟動(dòng)方法小結(jié)
MongoDB是一種開(kāi)源的服務(wù)器端NoSQL數(shù)據(jù)庫(kù)管理系統(tǒng),它提供了一種靈活的框架,可以快速地存儲(chǔ)、處理和管理大量的數(shù)據(jù),這篇文章主要給大家介紹了關(guān)于Mongodb數(shù)據(jù)庫(kù)兩種啟動(dòng)方法的相關(guān)資料,需要的朋友可以參考下2023-12-12mongodb如何對(duì)文檔內(nèi)數(shù)組進(jìn)行過(guò)濾的方法步驟
這篇文章主要介紹了mongodb如何對(duì)文檔內(nèi)數(shù)組進(jìn)行過(guò)濾的方法步驟,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2018-10-10MongoDB 索引創(chuàng)建和查詢(xún)優(yōu)化的方法
這篇文章主要介紹了MongoDB 索引創(chuàng)建和查詢(xún)優(yōu)化的方法,本文給大家介紹的非常詳細(xì),感興趣的朋友跟隨小編一起看看吧2024-07-07使用mongodb實(shí)現(xiàn)簡(jiǎn)單的讀寫(xiě)操作
這篇文章主要給大家介紹了如何使用mongodb實(shí)現(xiàn)簡(jiǎn)單的讀寫(xiě)操作,本文適合初學(xué)者,特別是剛剛安裝了mongodb數(shù)據(jù)庫(kù)的朋友,或在atlas剛拿到免費(fèi)集群的朋友,文中有詳細(xì)的代碼示例供大家參考,需要的朋友可以參考下2023-12-12mongodb eval 執(zhí)行服務(wù)器端腳本
在MongoDB的服務(wù)器端可以通過(guò)db.eval函數(shù)來(lái)執(zhí)行javascript腳本,如我們可以定義一個(gè)javascript函數(shù),然后通過(guò)db.eval在服務(wù)器端來(lái)運(yùn)行!我們前面其實(shí)也接觸過(guò)在服務(wù)器段運(yùn)行一個(gè)預(yù)定義的javascript腳本的情況,如在$where查詢(xún),執(zhí)行mapreduce任務(wù)等。2015-05-05Mongodb中MapReduce實(shí)現(xiàn)數(shù)據(jù)聚合方法詳解
Mongodb是針對(duì)大數(shù)據(jù)量環(huán)境下誕生的用于保存大數(shù)據(jù)量的非關(guān)系型數(shù)據(jù)庫(kù),針對(duì)大量的數(shù)據(jù)。接下來(lái)通過(guò)本文給大家介紹Mongodb中MapReduce實(shí)現(xiàn)數(shù)據(jù)聚合方法詳解,感興趣的朋友一起學(xué)習(xí)吧2016-05-05數(shù)據(jù)庫(kù)MongoDB啟動(dòng)的三種方式
MongoDB是一個(gè)流行的分布式文檔型數(shù)據(jù)庫(kù),用于存儲(chǔ)非結(jié)構(gòu)化數(shù)據(jù),本文給大家總結(jié)了數(shù)據(jù)庫(kù)MongoDB啟動(dòng)的三種方式,講解的非常詳細(xì),具有一定的參考價(jià)值,需要的朋友可以參考下2024-07-07