开发者

Is it possible to install mongodb without root privilages?

开发者 https://www.devze.com 2023-03-26 13:43 出处:网络
How can I install mongodb on a Linux server without root privileges? is th开发者_高级运维is possible? What would the steps be? Is there a way to configure mongo to not use /data/db?You may download th

How can I install mongodb on a Linux server without root privileges? is th开发者_高级运维is possible? What would the steps be? Is there a way to configure mongo to not use /data/db?


You may download the binaries from MongoDB website.

There are a lot of options for the command mongod to change the default behavior, one of these is:

--dbpath arg directory for datafiles

Based on comments:

But it is preferable to specify all configurations in a configuration file and just invoke mongod with:

--config filename

0

精彩评论

暂无评论...
验证码 换一张
取 消