Antarr Byrd
Antarr Byrd

Reputation: 26131

unrecognized character when creating mongodb service

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

Answers (1)

C. Dragon 76
C. Dragon 76

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

Related Questions