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.
vim /etc/yum.repos.d/mongodb.repo [mongodb-org] name=MongoDB Repository baseurl=http://mirrors.cloud.tencent.com/mongodb/yum/el$releasever/ gpgcheck=0 enabled=1
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。
This work adoptsCC agreementReprint must indicate the author and the link of this article