Unrecognized character when creating mongodb service

I try to create a service for mongodb in window 7. When it enters

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 
+4
source share
1 answer

As shown in the comment link, make sure the configuration file is encoded as ANSI or UTF-8, not UTF-16 (Unicode).

+8
source

Source: https://habr.com/ru/post/1484552/


All Articles