MONGO installation process
MONGO installation method There are tens of thousands of kinds, only one let me feel good, said the installation process of a little heart de.
Method One: Source installation, do not use this method, Nick I used the virtual machine compiled an afternoon, unexpectedly did not compile, forced shutdown, the next day forced to choose another method.
Method Two: Go to the official Search release package, download down tar.gz file, extract unexpectedly on a few executable files, no language.
Method Three: After Baidu learned, can be installed by Yum mode, Run command
Vim/etc/repos.d/10gen.repo
Add Content:
[10gen]name=10gen repositorybaseurl=http://downloads-distro.mongodb.org/repo/ redhat/os/x86_64gpgcheck=0
After saving, use yum install Mongodb-10gen, command to install!
Start MongoDB:
Systemctl Start Mongod
Close MongoDB
Systemctl Stop Mongod
MongoDB configuration file
Vim mongodb.conf
Connect to MongoDB
Mongo
This method is still reliable.
The installation process of MongoDB