MongoDB study NOTE 1: The download and installation of MongoDB are relatively idle over the past few days. I am going to learn about the MongoDB database. Today I have simply learned how to download and install MongoDB, and created a data warehouse that stores MongoDB. Share with you what you learned today as a blog. I. MongoDB download and installation location
MongoDB study NOTE 1: The download and installation of MongoDB are relatively idle over the past few days. I am going to learn about the MongoDB database. Today I have simply learned how to download and install MongoDB, and created a data warehouse that stores MongoDB. Share with you what you learned today as a blog. I. MongoDB download and installation location
MongoDB study Note 1: download and install MongoDB
Taking advantage of these few days, I am ready to learn about the MongoDB database. Today I have simply learned how to download and install MongoDB and created a data warehouse that stores MongoDB. Share with you what you learned today as a blog.
1. Download and install MongoDB
MongoDB: http://www.mongodb.org/
1. After Entering the homepage of the official website, click Downloads connection in the upper-right corner of the homepage ,:
<喎?http: www.2cto.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + MqGi1NrSs8Pm1tC/ydLUv7S1vcS/x7DX7tDCtcSw5rG + primary/daSVDBtL3To6zI5828y/primary = "http://www.2cto.com/uploadfile/Collfiles/20140705/201407050904286.png" alt = "\">
3. After you click the connection, a download prompt is displayed. If no prompt is displayed, click the click here link manually ,:
4. decompress the file after the download is complete. There is only one bin directory, that is, the main directory of MongoDB ,:
5. The installation process is to add the bin directory to the path environment variable. After adding the directory, you can use the MongoDB command in any directory to perform MongoDB operations ,:
6. After the path environment variable is configured, enter mongo-version in the command line. If the following prompt is displayed, the installation is successful.
2. Create a place to store MongoDB data
I learned from my learning that if you want to use MongoDB, you need to create a folder that stores MongoDB data like SVN. To facilitate future management, we place the directory of the data file in the same place as the decompressed directory, create a data folder under the directory, and enter mongod-dbpath e in the command line: \ open \ mongodb \ data. After the command is executed, the corresponding instance is started. The default port is 27017. To start the MongoDB server, enter this command, you can also create a bat batch file as needed. Startup effect:
3. Connect to the default database test
After the MongoDB server is enabled, enter mongo localhost: 27017 in the command line to connect to the default test database ,:
Here is a brief description of MongoDB installation. The introduction will be described later.