1. Download MongoDB:Curl "https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian71-3.2.7.tgz"-k-v-o mongodb-linux-x86_64- Debian71-3.2.7.tgz
2. Unzip the MongoDB:
Tar-xvzf mongodb-linux-x86_64-rhel62-3.2.7.tgz
3. Close the Mongod:Reference: https://docs.mongodb.com/manual/tutorial/manage-mongodb-processes/4. Back up the old binsudo mv bin Bin_back
Copy Bin
sudo cp-r ~/mongodb-linux-x86_64-rhel62-3.2.7/bin/usr/local/mongodb/
If there is a iptables limit, modify the iptables of all relevant servers and modify the configuration file directly:
1. Backup configuration file: sudo cp/etc/sysconfig/iptables/etc/sysconfig/iptables.backup
2. Modify the configuration file: sudo vim/etc/sysconfig/iptables
3. Restart Iptables services: sudo service iptables restart
start a new Mongod
sudo bin/mongod-f conf/mongo.conf
Summary of issues:
1. Exited with error number 1
But the log does not, you need to remove the fork in the configuration file so that the log can print to the terminal
MongoDB upgraded from 3.0 to 3.2