Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to install mongodb without root privilages?

Tags:

mongodb

How can I install mongodb on a Linux server without root privileges? is this possible? What would the steps be? Is there a way to configure mongo to not use /data/db?

like image 767
ocoutts Avatar asked Aug 08 '11 19:08

ocoutts


People also ask

Can I use MongoDB without installation?

MongoDB Atlas is a hosted MongoDB service option in the cloud which requires no installation overhead and offers a free tier to get started. This section of the manual contains information on installing MongoDB.


1 Answers

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

like image 171
André Puel Avatar answered Nov 15 '22 09:11

André Puel