centos7使用yum安装MongoDB4.4
centos7使用yum安装MongoDB4.4
创建repo
vi /etc/yum.repos.d/mongodb-org-4.4.repo
写入repo
[mongodb-org-4.4]
name=MongoDB 4.4 Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/$basearch/
gpgcheck=0
enabled=1
yun 安装
yum -y install mongodb-org
设置启动
systemctl enable mongod
systemctl start mongod
本机命令行进入MongoDB
mongo
至此安装完毕
COME FROM :https://blog.csdn.net/yangbo99/article/details/107906625