Recently in the toss MongoDB and Nodejs, in Imooc found a MongoDB introductory tutorial, follow the inside step by step, the following record my operation steps and encountered problems.
First, using VirtualBox to install Unbuntu, I use the version of 14.10.
Second, download Monogdb source code, the website is: http://www.mongodb.org/downloads
Third, unzip and compile the source code.
- Decompression command TAR-VXF Mongodb-src-r2.8.0-rc5.tar
- Compile command scans all. If your computer CPU has a multi-core, you can use the scans All-j core number (such as 2, 4, etc.) to speed up the compilation, I only use a core, the result is very slow. I mainly want to experience the process of compiling, you can also directly download the compiled binary files.
Four, compiled good common procedure introduction.
- Mongod-mongodb database execution program, using it for database deployment operations
- MONGO-client program to connect to the MongoDB database
- Import and export of Mongoimport MONGOEXPORT-MONGODB database
- Mongodump Import and export of Mongorestore-mongodb database binaries, often used for backup and recovery operations
Five, build a simple MongoDB server
Using virtual machines to build mongod development environment under Ubuntu