Install Mongo without root

4,738 views
Skip to first unread message

hcm online

unread,
Apr 24, 2015, 3:16:24 AM4/24/15
to mongod...@googlegroups.com
Hi team,

We've got a problem with Mongo installation in our real system (we installed successfully in virtual machine with root privilege and Mongo documents).

But is it possible to install MongoDB without root privilege in any steps?
If there is, please show me how to do it.

Thank you very much.

hcm online

unread,
Apr 24, 2015, 11:55:04 AM4/24/15
to mongod...@googlegroups.com
Hi developing team,

Could anyone help us?

We really need to solve this problem on the RHE Linux 64bit.

Thank you

Stephen Steneker

unread,
Apr 26, 2015, 8:06:40 PM4/26/15
to mongod...@googlegroups.com
On Saturday, 25 April 2015 01:55:04 UTC+10, hcm online wrote:
Could anyone help us?

We really need to solve this problem on the RHE Linux 64bit.

Hi,

If you want to install MongoDB without root/sudo access required in any steps, you can use the generic Linux binaries instead of the packaged install:

You'll have to create your own service definition and config file (or pass parameters on the command line when starting `mongod`). Assuming you have correct permissions on the provided dbpath, you can run the MongoDB binaries from any directory (as any user).

For an example config see:

Note that packaged installs run MongoDB as the `mongod` user or another non-root account. The packages only require root/sudo access for installing and managing the service (start/stop/restart).

Regards,
Stephen

Reply all
Reply to author
Forward
0 new messages