I'm trying to set up a local db server on my Windows 10 x64 machine. When I try to run anything with mongod
it doesn't run. I've already added the PATH, which is now C:/mongodb/bin (tried just C:/mongodb already). Also when I try to run mongo.exe and mongod.exe from the bin folders, the command box launches and immediately disappears, even when run as administrator. What's going on?
If you use Windows I would recommend
to navigate to the folder, where you installed mongoDB, in particular, to the bin
subfolder. In my case the path is
C:\Program Files\MongoDB\Server\4.0\bin
mongo --version
if your installation is correct than you will have something like
MongoDB shell version v4.0.9<br />
git version: fc525e2d9b0e4bceff5c2201457e564362909765
to go to the the Windows Environment Variables (type Environment Variables
in the WIndows search field)
C:\Program Files\MongoDB\Server\4.0\bin
) to Windows PATH Env
mongo --version should work from any place of your Windows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With