mongo数据库搭建

来源:互联网 发布:linux虚拟机文件共享 编辑:程序博客网 时间:2024/05/16 11:09

搭建环境centos7
搭建的过程参考的是mongo官方文档,地址:https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat/

第一步

创建yum源仓库/etc/yum.repos.d/mongodb-enterprise.repo

[mongodb-enterprise]name=MongoDB Enterprise Repositorybaseurl=https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/3.4/$basearch/gpgcheck=1enabled=1gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc

第二步

sudo yum install -y mongodb-enterprise