`
chenzhou123520
  • 浏览: 4249765 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Mongodb help命令介绍

阅读更多

 

首先切换到Mongodb bin目录
第一步:按如下格式输入命令
C:\Documents and Settings\chenzhou>D:
D:\>cd D:\Mongodb\bin
第二步:键入help命令
D:\Mongodb\bin>mongod --help
Mon Dec 12 19:47:52
Mon Dec 12 19:47:52 ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data
Mon Dec 12 19:47:52 **       see http://blog.mongodb.org/post/137788967/32-bit-limitations
Mon Dec 12 19:47:52 **       with --journal, the limit is lower
Mon Dec 12 19:47:52
Allowed options:

General options:
  -h [ --help ]          show this usage information
  --version              show version information【查看版本信息】
  -f [ --config ] arg    configuration file specifying additional options【把其他选项定义在配置文件中,然后通过配置文件启动】
  -v [ --verbose ]       be more verbose (include multiple times for more verbosity e.g. -vvvvv)
  --quiet                quieter output
  --port arg             specify port number【端口设置】
  --bind_ip arg          comma separated list of ip addresses to listen on  - all local ips by default
  --maxConns arg         max number of simultaneous connections【最大连接数设置】
  --objcheck             inspect client data for validity on receipt
  --logpath arg          log file to send write to instead of stdout - has  to be a file, not directory【日志文件所在的路径,必须配置为文件路径,而不是所在的目录】
  --logappend            append to logpath instead of over-writing【配置日志信息在日志文件中累加,而不是覆盖】
  --pidfilepath arg      full path to pidfile (if not set, no pidfile is created)
  --keyFile arg          private key for cluster authentication (only for  replica sets)
  --auth                 run with security
  --cpu                  periodically show cpu and iowait utilization
  --dbpath arg           directory for datafiles【配置数据库所在的路径】
  --diaglog arg          0=off 1=W 2=R 3=both 7=W+some reads
  --directoryperdb       each database will be stored in a separate  directory
  --journal              enable journaling【启用日志】
  --journalOptions arg       journal diagnostic options
  --journalCommitInterval arg      how often to group/batch commit (ms)
  --ipv6                           enable IPv6 support (disabled by default)
  --jsonp                          allow JSONP access via http (has security implications)【允许通过http访问jsonp格式数据(有安全隐患)】
  --noauth                         run without security
  --nohttpinterface                disable http interface
  --nojournal                      disable journaling (journaling is on by default for 64 bit)
  --noprealloc                     disable data file preallocation - will often hurt performance
  --noscripting                    disable scripting engine
  --notablescan                    do not allow table scans
  --nssize arg (=16)          .    ns file size (in MB) for new databases
  --profile arg                    0=off 1=slow, 2=all
  --quota                          limits each database to a certain number of files (8 default)
  --quotaFiles arg                 number of files allower per db, requires --quota
  --rest                           turn on simple rest api
  --repair                         run repair on all dbs
  --repairpath arg                 root directory for repair files - defaults to dbpath
  --slowms arg (=100)              value of slow for profile and console log
  --smallfiles                     use a smaller default file size
  --syncdelay arg (=60)            seconds between disk syncs (0=never, but not  recommended)
  --sysinfo                        print some diagnostic system information
  --upgrade                        upgrade db if needed

Windows Service Control Manager options:
  --install                       install mongodb service【安装Mongodb服务】
  --remove                        remove mongodb service【删除Mongodb服务】
  --reinstall                     reinstall mongodb service (equivilant of mongod  --remove followed by mongod --install)
  --serviceName arg               windows service name【Mongodb服务名称】
  --serviceDisplayName arg        windows service display name【Mongodb服务显示名称】
  --serviceDescription arg        windows service description
  --serviceUser arg               user name service executes as
  --servicePassword arg           password used to authenticate serviceUser

Replication options:
  --fastsync                      indicate that this instance is starting from a dbpath  snapshot of the repl peer
  --oplogSize arg                 size limit (in MB) for op log

Master/slave options:
  --master                        master mode
  --slave                         slave mode
  --source arg                    when slave: specify master as <server:port>
  --only arg                      when slave: specify a single database to replicate
  --slavedelay arg                specify delay (in seconds) to be used when applying master ops to slave
  --autoresync                    automatically resync if slave data is stale

Replica set options:
  --replSet arg         arg is <setname>[/<optionalseedhostlist>]

Sharding options:
  --configsvr                     declare this is a config db of a cluster; default port  27019; default dir /data/configdb
  --shardsvr                      declare this is a shard db of a cluster; default port  27018
  --noMoveParanoia                turn off paranoid saving of data for moveChunk.  this is on by default for now, but default will switch
  
分享到:
评论

相关推荐

    mongoDb 常用命令

    mongodb php distinct command --- mongoDb 常用命令

    MongoDB的help命令和脚本的操作.pdf

    MongoDB的help命令和脚本的操作.pdf 学习资料 复习资料 教学资源

    MongoDB_CLI:用于管理 MongoDB 本地服务器实例的简单 CLI。

    MongoDB 命令行界面 这是一个简单的 Bash CLI 脚本,用于管理本地mongod实例。 合理的 ... # Get MongoDB CLI help mongodb help # Start a mongod instance mongodb start # Stop a mongod instanc

    MongoDB常用数据库命令大全

    一、MongoDB 数据库常用操作命令 1、Help查看命令提示 help db.help(); db.yourColl.help(); 2、切换/创建数据库 use raykaeso; 当创建一个集合(table)的时候会自动创建当前数据库 3、查询所有数据库 show dbs; 4...

    Mongodb启动命令参数中文说明

    我们可以通过mongod –help查看mongod的所有参数说明,以下是各参数的中文解释。 基本配置 代码如下: –quiet # 安静输出 –port arg # 指定服务端口号,默认端口27017 –bind_ip arg # 绑定服务IP,若绑定...

    mongodb资料大全

    常用命令: mongod.exe --dbpath "d:\mongodb\data\db" --directoryperdb --logpath "d:\mongodb\data\logs" --logappend mongo.exe &gt;show dbs &gt;use memo //使用 数据库 memo &gt;show collections //列出当前数据库的...

    MongoDB常用操作命令大全

    一、数据库常用命令1、Help查看命令提示 代码如下:helpdb.help();db.yourColl.help();db.youColl.find().help();rs.help();2、切换/创建数据库 代码如下:use yourDB; 当创建一个集合(table)的时候会自动创建当前...

    MongoDB教程之基本管理命令

    mongod有很多可配置的选项,我们通过mongod –help可以查看所有选项,这里仅介绍一些主要选项:  代码如下:  –dbpath:  缺省情况下数据库的数据目录为/data/db。对于Windows平台,如果当前的可执行文件位于D盘...

    MongoDB中的主从同步配置和mongod相关启动命令讲解

    主要介绍了MongoDB中的主从同步配置和mongod相关启动命令讲解,文中也罗列了很多其他常用的mongod命令参数,需要的朋友可以参考下

    mongobar:mongobar:chocolate_bar:MongoDB备份和还原管理器

    通过-h --help命令访问帮助。 所有操作都有相关的帮助文本。 mongobar --help mongobar backup --help 组态 mongobar带有默认配置,该默认配置定义了在禁用身份验证的情况下在localhost:27017上运行的MongoDB...

    isodata的matlab代码博客-NotesMongoDB:笔记MongoDB

    介绍 MongoDB 不强制执行任何模式,因此文档不必在一个集合内使用相同的模式。 但它建议使用某种模式来防止滥用文档。 安装 小费 小费 要测试是否安装了数据库,您可以通过运行来检查: mongod --version 启动数据库...

    深入分析Mongodb数据的导入导出

    一、Mongodb导出工具mongoexport ... [root@localhost mongodb]# ./bin/mongoexport --help Export MongoDB data to CSV, TSV or JSON files. options: --help produce help message -v [ --verbose ] b

    mongob:适用于MongoDB的基于集合的备份工具,支持使用ObjectId等进行增量备份

    Mongob-MongoDB的收集到收集备份工具 特征 可调备份率。 支持MongoDB实例或Bz2压缩... 请注意,如果您不使用virtualenv,则可能需要以root用户身份运行上述命令。 用法 # Getting help mongo_backup --help # Runni

    mdb:增强 mongodb 开发工作流程

    运行node mdb help查看所有命令以及如何使用它 如何使用 用法: node mdb help或node mdb --help 显示帮助 node mdb started 显示正在运行的 mongo 进程 node mdb start {--in LOCATION} 仅当此位置存在时才在...

    MongoDB的mongo shell常用操作方法及操作脚本笔记

    1、Help查看命令提示 help db.help(); db.yourColl.help(); db.youColl.find().help(); rs.help(); 2、切换/创建数据库 use yourDB; 当创建一个集合(table)的时候会自动创建当前数据库 3、查询所有数据库 show ...

    MongoDB执行mongoexport时的异常及分析(数字类型的查询)

    概述 mongoexport命令行用于数据的导出,默认导出的... –help produce help message  -v [ –verbose ] be more verbose (include multiple times for more  verbosity e.g. -vvvvv)  -h [ –host ] arg mo

    Ubuntu中安装MongoDB及执行一些简单操作笔记

    mongod –help for help and startup options  mongod: symbol lookup error: mongod: undefined symbol: _ZN7pcrecpp2RE4InitEPKcPKNS_10RE_OptionsE  下面安装mongodb-10gen来解决这个错误: 获取下载10-gen公共...

    支持海量数据的MongoDBNoSQL

    这个小清单列出了MongoDB经常使用和容易忘记的一些操作,命令和技术。启动MongoDB的选项可以通过命令行或者配置文件设置,两者的语法稍微有点不同,这里有一个三种选项的设置例子:在mongod下运行--help可以列出所有...

    docker-stitch-cli:Docker Stitch控制台命令的容器化版本

    Dockerized MongoDB Stitch CLI介绍这是的Dockerized版本。 该项目将编译Stitch二进制文件,并让您运行它而没有任何Go或NPM依赖性问题。 它还提供了容器的安全隔离。用法要生成图像: docker build -t stitch-cli ....

Global site tag (gtag.js) - Google Analytics