日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無(wú)先后,達(dá)者為師

網(wǎng)站首頁(yè) 編程語(yǔ)言 正文

centos離線安裝mongodb-database-tools方法詳解_MongoDB

作者:xujienotes ? 更新時(shí)間: 2022-12-11 編程語(yǔ)言

mongodb-database-tools是MongoDB數(shù)據(jù)庫(kù)工具的命令行的工具,用于工作與MongoDB部署。可以使用mongodumpmongoimport很方便的導(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/

原文鏈接:https://www.cnblogs.com/xujiecnblogs/p/16881165.html

欄目分類
最近更新