How To Install Mongodb Shell On Windows
How to Download & Install MongoDB on Windows
Step 1 — Download the MongoDB MSI Installer Package
Caput over hither and download the current version of MongoDB. Make certain y'all select MSI equally the packet you want to download.
Step 2 — Install MongoDB with the Installation Wizard
A. Make sure you are logged in equally a user with Admin privileges. Then navigate to your downloads folder and double click on the .msi package you just downloaded. This will launch the installation magician.
B. Click Next to get-go installation.
C. Accept the licence agreement then click Adjacent.
D. Select the Complete setup.
E. Select "Run service as Network Service user" and make a annotation of the data directory, we'll need this later on.
F. Nosotros won't need Mongo Compass, and then deselect it and click Adjacent.
M. Click Install to begin installation.
F. Hit Finish to complete installation.
Step 3— Create the Data Folders to Store our Databases
A. Navigate to the C Drive on your computer using Explorer and create a new folder called information here.
B. Inside the data folder you simply created, create another folder called db.
Step 4 — Setup Alias Shortcuts for Mongo and Mongod
Once installation is complete, we'll need to set up MongoDB on the local system.
A. Open up your Hyper last running Git Fustigate.
B. Modify directory to your dwelling house directory with the following command:
cd ~ C. Hither, we'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 East. In vim, striking the I key on the keyboard to enter insert manner.
F. In your explorer go to C → Programme Files → MongoDB → Server
Now y'all should meet the version of your MongoDB.
G. Paste in the following lawmaking into vim, make certain your replace the 4.0 with your version that you run across in explorer
alias mongod="/c/Programme\ files/MongoDB/Server/4.0/bin/mongod.exe"
alias mongo="/c/Plan\ Files/MongoDB/Server/4.0/bin/mongo.exe" F. Hit the Escape key on your keyboard to exit the insert fashion. Then type
:wq! to save and leave Vim.
Step 5 — Verify That Setup was Successful
A. Close down the electric current Hyper terminal and quit the application.
B. Re-launch Hyper.
C. Type the post-obit commands into the Hyper terminal:
mongo --version Once you've striking enter, you should come across something like this:
This means that you have successfully installed and setup MongoDB on your local system!
If you see something that looks similar bash mongo command not found, then brand sure you check back at all the steps above and follow it step-by-step making certain there are no typos and y'all haven't missed any of the steps.
Source: https://medium.com/@LondonAppBrewery/how-to-download-install-mongodb-on-windows-4ee4b3493514
Posted by: alejoroce1967.blogspot.com

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