![]() Suppose that i want to run mongo shell, so in my place the command should be like that C:\Program Files\MongoDB\Server\3.6\bin>mongoĪfter running the mongo shell, you shall find the some information like that as mention below. ![]() If you added the /bin to your PATH you can run mongo mongo In my place C:\Program Files\MongoDB\Server\3.6\bin. Note: By default MongoDB installation directory is C:\Programįiles\MongoDB\Server\x.x\bin. To connect to a MongoDB instance running on localhost with default port 27017:Īt a prompt in a terminal window (or a command prompt for Windows),įor example in my environment it will be C:\Program Files\MongoDB\Server\3.6\bin>mongod It handles data requests, manages data access, and performs background management operations. Note: Make sure before starting the mongod server and mongo shell, you have created the by default path of MongoDB like \data\db in your C:\ drive.Īs MongoDB Documented here mongod is the primary daemon process for the MongoDB system. Let's start from the beginning, after installation of MongoDB. ![]() The -dbpath should be \data\db on Windows environment.Īs per you log you are trying to connect Local MongoDB Instance on Default port (that is 27017). ![]() The -dbpath is the path parameter, which mongod server check to startup. If you attempt to start a mongod with a -dbpath that contains data files produced by a storage engine other than the one specified by -storageEngine, mongod will refuse to start.
0 Comments
Leave a Reply. |