Mongodb uses domestic source to accelerate installation


Mongodb is a very famous document database. According to the installation method described in the official documents, for some reasons, we will be very slow in the installation. Since I use the alicloud server, I happen to see mongodb in the alicloud image source. After configuring it according to the document, I can’t download and install it normally. Then I went to the Tencent cloud software source website and saw the source of mongodb. I had a try, and the download and installation was very fast. It was completed in about 20 seconds.
Configuration mode:

vim /etc/yum.repos.d/mongodb.repo

name=MongoDB Repository

My system is CentOS, execute the following command to install

sudo yum makecache
sudo yum install mongodb-org

For more ways to use the system, please refer to Tencent cloud’s documents,Portal

Here is the recommendation of Tencent cloudnpmSource, I and Taobao source comparison, the speed is really much faster.

This work adoptsCC agreementReprint must indicate the author and the link of this article