1. # mongodb.conf
  2.  
  3. # Where to store the data.
  4. dbpath=/var/lib/mongodb
  5.  
  6. #where to log
  7. logpath=/var/log/mongodb/mongodb.log
  8.  
  9. logappend=true
  10.  
  11. bind_ip = 127.0.0.1
  12. #port =
  13.  
  14. # Enable journaling, http://www.mongodb.org/display/DOCS/Journaling
  15. journal=true
  16.  
  17. # Enables periodic logging of CPU utilization and I/O wait
  18. #cpu = true
  19.  
  20. # Turn on/off security. Off is currently the default
  21. #noauth = true
  22. #auth = true
  23.  
  24. # Verbose logging output.
  25. #verbose = true
  26.  
  27. # Inspect all client data for validity on receipt (useful for
  28. # developing drivers)
  29. #objcheck = true
  30.  
  31. # Enable db quota management
  32. #quota = true
  33.  
  34. # Set oplogging level where n is
  35. # =off (default)
  36. # =W
  37. # =R
  38. # =both
  39. # =W+some reads
  40. #oplog =
  41.  
  42. # Diagnostic/debugging option
  43. #nocursors = true
  44.  
  45. # Ignore query hints
  46. #nohints = true
  47.  
  48. # Disable the HTTP interface (Defaults to localhost:).
  49. #nohttpinterface = true
  50.  
  51. # Turns off server-side scripting. This will result in greatly limited
  52. # functionality
  53. #noscripting = true
  54.  
  55. # Turns off table scans. Any query that would do a table scan fails.
  56. #notablescan = true
  57.  
  58. # Disable data file preallocation.
  59. #noprealloc = true
  60.  
  61. # Specify .ns file size for new databases.
  62. # nssize = <size>
  63.  
  64. # Accout token for Mongo monitoring server.
  65. #mms-token = <token>
  66.  
  67. # Server name for Mongo monitoring server.
  68. #mms-name = <server-name>
  69.  
  70. # Ping interval for Mongo monitoring server.
  71. #mms-interval = <seconds>
  72.  
  73. # Replication Options
  74.  
  75. # in replicated mongo databases, specify here whether this is a slave or master
  76. #slave = true
  77. #source = master.example.com
  78. # Slave only: specify a single database to replicate
  79. #only = master.example.com
  80. # or
  81. #master = true
  82. #source = slave.example.com
  83.  
  84. # Address of a server to pair with.
  85. #pairwith = <server:port>
  86. # Address of arbiter server.
  87. #arbiter = <server:port>
  88. # Automatically resync if slave data is stale
  89. #autoresync
  90. # Custom size for replication operation log.
  91. #oplogSize = <MB>
  92. # Size limit for in-memory storage of op ids.
  93. #opIdMem = <bytes>
  94.  
  95. # SSL options
  96. # Enable SSL on normal ports
  97. #sslOnNormalPorts = true
  98. # SSL Key file and password
  99. #sslPEMKeyFile = /etc/ssl/mongodb.pem
  100. #sslPEMKeyPassword = pass

mongodb.conf的更多相关文章

  1. mongodb.conf配置文件详解

    mongod --config /etc/mongodb.conf 配置如下:verbose:日志信息冗余.默认false.提高内部报告标准输出或记录到logpath配置的日志文件中.要启用verbo ...

  2. mongodb 按配置文件mongodb.conf启动

    命令如下 mongod --config /etc/mongodb.conf

  3. ermissions on /usr/local/mongodb/conf/keyFile are too open

    ermissions on /usr/local/mongodb/conf/keyFile are too open > rs.initiate(cfg); { "ok" : ...

  4. 架构实战项目心得(六)(补):mongodb.conf参数详解

    --dbpath 数据库路径(数据文件)--logpath 日志文件路径--master 指定为主机器--slave 指定为从机器--source 指定主机器的IP地址--pologSize 指定日志 ...

  5. mongodb配置文件.conf

    启动方式 ./bin/mongod -f MongoDB.conf 会看到 about to fork child process, waiting until server is ready for ...

  6. MongoDB之conf配置文件详解(五)

    详细看一下mongodb配置文件. mongodb.conf # mongodb.conf # 数据库文件位置 dbpath=/var/lib/mongodb #日志文件的路径 logpath=/va ...

  7. MongoDB集群配置

    本文演示:(一个主服务器,一个备份服务器,三个仲裁服务器) 官方推荐副本集的成员数量为奇数,最多12个副本集节点,最多7个节点参与选举. 本文演示基于本机,用端口区分服务(每个服务器下新建db文件夹用 ...

  8. 进程监控工具supervisor 启动Mongodb

    进程监控工具supervisor 启动Mongodb 一什么是supervisor Superviosr是一个UNIX-like系统上的进程监控工具. Supervisor是一个Python开发的cl ...

  9. MongoDB基础命令笔记

    一.创建数据库 use foobar 二.创建集合 db.persons.insert({name:"zhaomin",age:23}) 三.查找 db.persons.find( ...

随机推荐

  1. windows phone (12) 小试自定义样式

    原文:windows phone (12) 小试自定义样式 样式在BS开发中经常用到,在wp中系统也提供了解决办法,就是对设置的样式的一种资源共享,首先是共享资源的位置,它是在App类中,之前我们已经 ...

  2. 9patch(.9)怎么去掉自己画上的黑点/黑线

    在自己制作.9.png图片的时候,制作之后所制作的图片上面会显示出制作的痕迹,也即是图片区域上会显示小黑点和黑线.那么为了真正的利用.9.png图片的使用效果.这些瑕疵当然是不能出现的了.因此,要想办 ...

  3. Django - Django框架 简单介绍

    Django框架 简单介绍 本文地址: http://blog.csdn.net/caroline_wendy/article/details/29172271 1. 介绍 Django是一个开放源码 ...

  4. android平台TextView使用ImageSpan画廊GIF图像

    android-gif-drawable(https://github.com/koral--/android-gif-drawable/releases)开源项目---是一个蛮不错的android ...

  5. Effective C++规定45 附加代码

    这部分是额外的代码的博客.键45条款想法已经实现. #include<iostream> using namespace std; template<typename T> c ...

  6. 三星Samsung 4.4.2该负责人制度,简化名单

    installed uninstalled AccessControl.apk AllshareControlShare.apk AirMotionTryActually.apk AllshareFi ...

  7. Oracle改变字段类型

    由于需求变化.现在,我们要一个类型NUMBER(8,2)字段类型改变 char. 总体思路如以下:       将要更改类型的字段名改名以备份,然后加入一个与要更改类型的字段名同名的字段(原字段已经改 ...

  8. sed中求公共前缀

    string1="test toast" string2="test test" printf "%s\n%s\n" "$stri ...

  9. Codeforces Round#308

    A题,看样例就知道要求什么,   水过去 #include <stdio.h> #include <string.h> #include <stdlib.h> #i ...

  10. HTML5 Canvas鼠标与键盘事件

    演示HTML5 Canvas鼠标事件,获取Canvas对象上的鼠标坐标,演示键盘事件 通过键盘控制Canvas上对象移动. Canvas对象支持所有的JavaScript的鼠标事件,包括鼠标点击(Mo ...