mongod and mongo commands not working on windows 10

后端 未结 6 1271
灰色年华
灰色年华 2021-02-13 22:27

I\'ve installed mongoDB on my windows 10 OS. Then I tried setting its database path to some directory by moving to it and typing mongod --datapath=data in cmd, wher

6条回答
  •  不知归路
    2021-02-13 23:00

    Another reason to it if you enabled any property in YAML file and it is not formatted properly. YAML looks for specific syntax like colon":"+space" ".

    E.g.-

    security:
        authorization: enabled
    

提交回复
热议问题