Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer
    
It's Windows & it works! Though i needed it for line comment after the config command like in the question itself. Anyway, thanks for the answer. –  abhisekp Feb 5 at 3:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.