Mongo is unable to start

后端 未结 9 950
故里飘歌
故里飘歌 2020-12-28 08:58

I\'m trying to start mongo uin windows10 by type: mongo in cmd.

I am getting this error:

C:\\Users\\Itzik>mongo
MongoDB shell versio         


        
9条回答
  •  悲&欢浪女
    2020-12-28 09:23

    First set the path in Enviroment Variables, C:\Program Files\MongoDB\Server\3.6\bin after that use bellow command

    • C:\>mkdir data
    • C:\>cd data
    • C:\data>mkdir db
    • C:\data\db>

    Then go to bin directory and select mongod.exe or use mongod. Without closing previous cmd open a new cmd and start the client using mongo Now it will work.

提交回复
热议问题