Cutting-edge
I plan to learn about nosql recently, so I chose MongoDB. I will not introduce MongoDB here. This series is written as a post-learning assignment. You can write down all the problems you encounter and what you need to pay attention, this makes it easy for you to have a reference in the future, or when other students encounter the same problem, you can refer to it.
I learned how to use Linux as the operating system for MongoDB. On the one hand, MongoDB is good at XXX and XXX in Linux, and I also learned about Linux.
InstallPrerequisites
Install liunx (the landlord uses centos 6.0 installed by vm7 in win7 x64. Therefore, the landlord adds the machine's memory to 8 GB)
Install
1. Download The MongoDB installation package from the Internet. The default download path here is home/downloads (the main author uses chrome to download the package)
2. Copy the downloaded file to the home/data/DB folder (you can use the mkdir home/DB command to create or right-click Create folder)
3. decompress the MongoDB File
Command: Tar zxf MongoDB. tgz
After decompression, we can see a folder with a mongdb-linux-x86_64-2.01
3. Execute the installation command
Command:./MongoDB/bin/mongod-dbpath = DB
Here, we need to explain how long the folder with the previous name was changed to MongoDB during installation, and a DB folder and log folder were created under the data folder, the two folders and the previous MongoDB folder are brother folders.
Is the interface for successful installation.
This is the first installation and first use of liunx by the landlord. It is not understood in many places, but it is also based on the Installation Methods of online users, however, the installation can be successful through the above method.