标签:gpg exp mongod systemctl dir org seve 下载安装 directory
1、配置yum源文件2、yum安装mongodb
sudo yum install -y mongodb-org
3、启动mongodb
systemctl start mongod.service
4、查看mongodb
mongo
1、下载安装包并解压
curl https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.0.10.tgz
2、配置环境变量
export PATH=<mongodb-install-directory>/bin:$PATH
标签:gpg exp mongod systemctl dir org seve 下载安装 directory
原文地址:https://blog.51cto.com/11773387/2417130