Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 210
Antarr Byrd Avatar asked Feb 16 '23 08:02

Antarr Byrd


1 Answers

As jimoleary suggested in a comment link, be sure the config file is encoded as ANSI or UTF-8 rather than UTF-16 (Unicode).

like image 59
C. Dragon 76 Avatar answered Mar 06 '23 03:03

C. Dragon 76