一、安装
1.下载mongodb的rpm包
2.安装mongodb
rpm -ivh mongodb-org-server-4.4.7-1.el7.x86_64.rpm
3.启动mongodb
systemctl start mongod.service
4.设置开机启动
systemctl enable mongod.service
二、MongoDB配置文件
1.默认配置文件
/etc/mongod.conf
2.开启安全认证
vi /etc/mongod.conf
2022-12-21 09:53:05
rpm -ivh mongodb-org-server-4.4.7-1.el7.x86_64.rpm
systemctl start mongod.service
systemctl enable mongod.service
/etc/mongod.conf
vi /etc/mongod.conf