Linux MongoDBinstallationPreface:
Official Reference manual: https://docs.mongodb.org/manual/?_ga=1.41355425.2024551820.1440643898
You can also download the corresponding PDF version, or find the Chinese version online (mongodb_ authoritative Guide _ Chinese version), find the Linux platform installation introduction
1. Installation Environment centos-5.10-x86_64
2. MongoDB server-side version: mongodb-linux-x86_64-3.0.6
steps:1. Unpacking the installation package
2. installationMongodb
MongoDB package Inside is already the mutation good command, Direct copy installation can be
View all the command collections
3. SetMongodbthe environment Variables
set the MONGODB environment variable in /etc/profile, add
4. setting the data file storage directory
5. setting the log file storage directory
6. To Create a startup configuration file
7. AddMongodbas aLinuxService Random Start
add in file /etc/rc.local
8. Manual StartMogodbServer
default port:27017 , external connection note Firewall-to-port restrictions
9. Client Connection test:
Server Setup Complete
10. Advance UseMongodbClient Version (Windows)
Linux MongoDB Installation