2

How to mark a line comment in mongodb configuration file?

cpu=true #temporary for dev env

Is this the right way?

There is no clue about it in their website page about setting the configuration options.

Evan Carroll
  • 65,432
  • 50
  • 254
  • 507
abhisekp
  • 123
  • 1
  • 5

1 Answers1

4

If you wish to mark the line a comment, then prepend the hash mark like so:

# cpu=true 

Any line beginning this way will be ignored completely.

Although it is not Windows (which I believe you are running), you can see examples in the Linux config file examples.

Adam C
  • 9,235
  • 3
  • 28
  • 45