How can I solve “ Failed to set up sockets during startup” when I run mongodb server?

前端 未结 1 1426
野的像风
野的像风 2021-01-25 22:53

I had install mongodb

I try run mongodb server on command promp like this :

mongod.exe --dbpath=c:\\mongodata

There exist error like th

相关标签:
1条回答
  • 2021-01-25 23:16

    If you want to start mongodb with command prompt in windows, set the environmental variable global, once you done. You can type mongod in windows where the MongoDB starts on the default port 27017. To set environment variable in windows search environmental variable->path add the mongodb path mostly

    c:/Program Files/MongoDB/Server/3.6/bin/
    

    Change version no 3.6 accordingly based on MongoDB you installed on your system.

    0 讨论(0)
提交回复
热议问题