MongoDB Learning Note One: The download and installation of MongoDB
Take advantage of these days more idle, ready to learn the MongoDB database, today simply learned some of the MongoDB download and installation, and created a storage MongoDB Data warehouse. Share what you learned today as a blog.
First, the download and installation of MongoDB
MongoDB for:http://www.mongodb.org/
1. After entering the homepage, on the top right of the homepage, click Downloads Connection:
2, in the page can see the latest version and previously released version, here Select the latest version, Windows 32-bit download, the format of the file is in zip format, click the zip Link:
3, click the connection will be prompted to download, if there is no prompt to manually click here Link,:
4. After downloading the file, you can see that there is only one bin directory, which is the main directory of MongoDB:
5, the installation process is to add the bin directory to the PATH environment variable process, add after you can use the MongoDB command in any directory, to do some MongoDB operation:
6, after configuring the PATH environment variable, enter mongo-version on the command line, if you can see the following prompt, then the installation was successful.
Ii. setting up a place to store MongoDB data
Learn from learning, if you want to use MongoDB, like SVN, to create a folder to store MongoDB data, in order to facilitate future management, we put the data file directory in the same place as the decompression directory, in this directory to create a folder, the name is arbitrary, Then enter Mongod–dbpath e:\open\mongodb\data on the command line, after the command execution completes, and will launch the corresponding instance, the default port is 27017, if you want to start the MongoDB server, only need to enter the command, You can also run as a bat batch file as needed. Effect of Startup:
Third, connect the default database test
After the MongoDB server is turned on, enter MONGO localhost:27017 on the command line, which allows you to connect to the default test database:
Here is simply a description of the installation of MongoDB, the introduction will be described in the future.