呵呵哒,每天都是小惊喜. 一 下载 https://www.mongodb.org/downloads可进行下载,根据需要选择合适的版本和操作系统 二 上传服务器 1 上传服务器路径并解压 2 创建数据库文件夹 mkdir /data/db/mongo 3 创建日志文件 touch /usr/local/mongodb/logs 三 启动 /usr/local/mongodb/bin/mongod --dbpath=/data/db/mongo --logpath=/usr/local/mong…