2. 配置环境变量
3. 测试
=
2. Linux
1 # 解压到指定目录 2 tar -zxvf mongodb-linux-x86_64-rhel70-4.2.7.tgz -C /opt/ 3 4 # 配置环境变量 5 # MONGODB_HOME 6 export MONGODB_HOME=http://www.likecs.com/opt/mongodb-linux-x86_64-rhel70-4.2.7 7 export PATH=$PATH:$MONGODB_HOME/bin 8 9 # 测试 10 [root@controller ~]# mongo 11 MongoDB shell version: 4.2.7 12 connecting to: test