so you have to create shortcut for this.įirst close the cmd.then copy the location where the mongodb files are located.you can do it by click right mouse button on any file in bin folder and go propoties.Īfter that go to the my computer and right click on it and go propoties.Go to the advanced system settings.Ĭlick environment variables and create a new path.Ĭlick new button and set the variable name as PATH and variable value as the previously copied path.įinally open cmd and type mongod.then you can see it works correctly. You can’t write the above code every time when you want to execute mongodb. So you have to create data\db directories in C drive.Īfter that you can again type mongod and check weather it is displays waiting for connection on port 27017.that means it runs correctly. then go to the command prompt and type mongod.you can see the following, which says c:\data\db\ not found. Then click on the complete button, and your installation process. Double click on the installer, it will ask for accepting the Licence agreement. When your MongoDB file is completely downloaded, then move to the directory where the MongoDB installer (.msi) is kept. You will find the server startup logs in. Click on the download button, and it will start downloading your MongoDB package. First you have to go to download mongodb setup.Then choose your OS.After that you have to select suitable version.the first default displaying version is compatible for windows 7 & up to now.Īfter that you can run the downloaded setup.after finishing the installation you can go to Program Files\MongoDB\Server\3.2\bin. Open command prompt, navigate to C:mongodb-win32-x8664-2008plus-2.6.3bin folder and execute the following command to start the mongoDB server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |