我按照这些说明在Ubuntu 15.10上安装MongoDB 3.2.5:
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/#install-for-64-bit-linux
我完成了第3步:
将解压缩的文件夹复制到MongoDB将运行的位置。
MongoDB应该从哪个位置运行?
(注意:我认为此位置应与defaut存储数据的位置不同,即/data/db
)
答案 0 :(得分:1)
You are free to choose where you want to install MongoDB, but it is customary to install software into /opt
when not installing software using the package manager (apt in case of Ubuntu).
Why aren't you following the guide for installing on Ubuntu - it's much simpler: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/