wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.6.8.tgz
tar -zxvf mongodb-linux-x86_64-3.6.8.tgz
vi ~/.bash_profile source ~/.bash_profile
mkdir -p data/db
mongod --dbpath=‘../data/db‘
6.使用客户端连接
新开窗口,执行
mongo
原文:https://www.cnblogs.com/shine-rainbow/p/9897696.html