Advertisement
lucifer_chn

Untitled

Jul 12th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # mongodb.conf
  2.  
  3. #where to log
  4. logpath=/var/log/mongodb/mongodb.log
  5.  
  6. # fork and run in background
  7. fork = true
  8.  
  9. bind_ip = 0.0.0.0
  10. port = 27017
  11.  
  12. dbpath=/var/lib/mongodb
  13.  
  14. pidfilepath=/var/run/mongodb/mongodb.pid
  15.  
  16. # Enables periodic logging of CPU utilization and I/O wait
  17. #cpu = true
  18.  
  19. # Turn on/off security.  Off is currently the default
  20. #noauth = true
  21. #auth = true
  22.  
  23. # Verbose logging output.
  24. #verbose = true
  25.  
  26. # Inspect all client data for validity on receipt (useful for
  27. # developing drivers)
  28. #objcheck = true
  29.  
  30. # Enable db quota management
  31. #quota = true
  32.  
  33. # Set oplogging level where n is
  34. #   0=off (default)
  35. #   1=W
  36. #   2=R
  37. #   3=both
  38. #   7=W+some reads
  39. #oplog = 0
  40.  
  41. # Diagnostic/debugging option
  42. #nocursors = true
  43.  
  44. # Ignore query hints
  45. #nohints = true
  46.  
  47. # Disable the HTTP interface (Defaults to localhost:27018).
  48. #nohttpinterface = true
  49.  
  50. # Turns off server-side scripting.  This will result in greatly limited
  51. # functionality
  52. #noscripting = true
  53.  
  54. # Turns off table scans.  Any query that would do a table scan fails.
  55. #notablescan = true
  56.  
  57. # Disable data file preallocation.
  58. #noprealloc = true
  59.  
  60. # Specify .ns file size for new databases.
  61. # nssize = <size>
  62.  
  63. # Accout token for Mongo monitoring server.
  64. #mms-token = <token>
  65.  
  66. # Server name for Mongo monitoring server.
  67. #mms-name = <server-name>
  68.  
  69. # Ping interval for Mongo monitoring server.
  70. #mms-interval = <seconds>
  71.  
  72. # Replication Options
  73.  
  74. # in replicated mongo databases, specify here whether this is a slave or master
  75. #slave = true
  76. #source = master.example.com
  77. # Slave only: specify a single database to replicate
  78. #only = master.example.com
  79. # or
  80. #master = true
  81. #source = slave.example.com
  82.  
  83. # Address of a server to pair with.
  84. #pairwith = <server:port>
  85. # Address of arbiter server.
  86. #arbiter = <server:port>
  87. # Automatically resync if slave data is stale
  88. #autoresync
  89. # Custom size for replication operation log.
  90. #oplogSize = <MB>
  91. # Size limit for in-memory storage of op ids.
  92. #opIdMem = <bytes>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement