I'm trying to create a service for mongodb in window 7. When it enter
mongod --config c:\mongodb\mongod.cfg --dbpath c:\mongodb\data\db --install
i get this error
error command line: unrecognized line in ' ■l'
mongod.cfg
logpath=C:\mongodb\log\mongo.log
As jimoleary suggested in a comment link, be sure the config file is encoded as ANSI or UTF-8 rather than UTF-16 (Unicode).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With