How To Install Mongodb On Windows 10
How to Download & Install MongoDB on Windows
Footstep i — Download the MongoDB MSI Installer Package
Head over here and download the electric current version of MongoDB. Make certain you lot select MSI as the package yous desire to download.
Step two — Install MongoDB with the Installation Sorcerer
A. Make sure you are logged in as a user with Admin privileges. So navigate to your downloads binder and double click on the .msi package you simply downloaded. This volition launch the installation wizard.
B. Click Next to start installation.
C. Take the licence understanding then click Next.
D. Select the Complete setup.
E. Select "Run service as Network Service user" and make a notation of the data directory, we'll need this later.
F. We won't need Mongo Compass, so deselect it and click Next.
Thousand. Click Install to begin installation.
F. Hit End to complete installation.
Step iii— Create the Data Folders to Store our Databases
A. Navigate to the C Drive on your computer using Explorer and create a new binder called data here.
B. Inside the information binder y'all just created, create another folder called db.
Step 4 — Setup Alias Shortcuts for Mongo and Mongod
Once installation is complete, we'll demand to set up MongoDB on the local system.
A. Open up up your Hyper final running Git Bash.
B. Change directory to your home directory with the following command:
cd ~ C. Here, nosotros're going to create a file chosen .bash_profile using the post-obit command:
touch .bash_profile D. Open the newly created .bash_profile with vim using the post-obit command:
vim .bash_profile Eastward. In vim, hit the I key on the keyboard to enter insert mode.
F. In your explorer go to C → Programme Files → MongoDB → Server
Now you should see the version of your MongoDB.
One thousand. Paste in the following lawmaking into vim, brand sure your replace the 4.0 with your version that you lot encounter in explorer
allonym mongod="/c/Program\ files/MongoDB/Server/four.0/bin/mongod.exe"
allonym mongo="/c/Plan\ Files/MongoDB/Server/iv.0/bin/mongo.exe" F. Hit the Escape primal on your keyboard to exit the insert mode. And so type
:wq! to save and exit Vim.
Step v — Verify That Setup was Successful
A. Close down the electric current Hyper final and quit the application.
B. Re-launch Hyper.
C. Type the following commands into the Hyper terminal:
mongo --version Once you lot've hit enter, you should see something like this:
This means that you have successfully installed and setup MongoDB on your local organisation!
If you see something that looks like bash mongo control non constitute, and so make sure you lot check back at all the steps higher up and follow it step-by-step making sure there are no typos and you lot haven't missed any of the steps.
How To Install Mongodb On Windows 10,
Source: https://medium.com/@LondonAppBrewery/how-to-download-install-mongodb-on-windows-4ee4b3493514
Posted by: perrymerhade80.blogspot.com

0 Response to "How To Install Mongodb On Windows 10"
Post a Comment