当前位置:网站首页>Quick install mongodb

Quick install mongodb

2022-04-23 16:42:00 A hundred nights

install MongoDB

1. To configure yum Source

vi /etc/yum.repos.d/mongodb.repo
----------- Add the following --------------------------
[MongoDB]
name=MongoDB Repository
baseurl=http://repo.mongodb.org/yum/redhat/7Server/mongodb-org/4.0/x86_64/
gpgcheck=0
enabled=1

2. download mongodb, encounter completed installation is complete .

yum -y install mongodb-org

3. Start the service

systemctl start mongod.service // No result display 

4. Configuration start up

chkconfig mongod on

 Insert picture description here

5. Verify and view the version and startup status

systemctl status mongod.service
mongod --version

 Insert picture description here

版权声明
本文为[A hundred nights]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231401521416.html