The work of the hand is not very busy, so to learn to study for a long time like contact with MongoDB, but the previous period of work time are more. The records are here for future reference.
Environment:
Centos 7 64-bit
Begin:
1. Download Mongo:wget on the websitehttps://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.0.3.tgz
Tar-zxvfmongodb-linux-x86_64-rhel70-3.0.3.tgz
There are 13 executable programs under the bin file.
Where./mongo is the command-line program,./mongod is the startup program, first run Mongod
./mongod error exception in initandlisten:29 Data directory/data/db not found., terminating
Create a new partition/data/db the recommended setting is 256KB or smaller, I'll ignore it first. (^_^ is wanring anyway,)
2. Run./mongod, prompt to run successfully waiting for connections on port 27017
Default Listener 27017 Port
3. Run down./mongo (use SSH in the previous step remember to use the nohup or re-open a terminal)
The command-line mode is now started.
Postscript:
Because it is only learning, so temporarily did not join the boot boot or service.
NOSQL MONGO Getting Started learning notes-MongoDB installation (i)