Reputation: 26131
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
Upvotes: 4
Views: 1033
Reputation: 10062
As jimoleary suggested in a comment link, be sure the config file is encoded as ANSI or UTF-8 rather than UTF-16 (Unicode).
Upvotes: 8