MongoDB upgraded from 3.0 to 3.2

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.