Install MongoDB on bluehost

Source: Internet
Author: User
Tags install mongodb cpanel dedicated ip

This article is a little more up to date with the changes made by hostmonster/bluehost, and to make the instructions a little more clear, and simplified.

1. Download The MongoDB binaries-you want to downloadLegacy-staticProduction release. hosmonster/bluehost run Linux 64-bit

Download

I found it easier to extract the files on my desktop then upload them to a directory called MongoDB IN THE ROOT home folder.

Your MongoDB folder shocould look like the below when all done:
/Home/{username}/MongoDB
/Home/{username}/MongoDB/bin
/Home/{username}/MongoDB/Data
/Home/{username}/MongoDB/include
/Home/{username}/MongoDB/lib64

Replace {username} with your login name for hostmonster/bluehost. You can find your username in the cpanel on the left where it says username.

2. In your ssh/Shell console-now we need to make the MongoDB command usable so do the following commands

Nano. bashrc

3. Now Add the following line to the bottom of the file.

Export Path =/home/{username}/MongoDB/bin: $ path

Replace {username} with your login name for hostmonster/bluehost. You can find your username in the cpanel on the left where it says username.

4. Save

CTRL + xConfirm save by typing 'y' then enter, then enter again to confirm the file.

5. Lets verify that everything is working. You will need to reload bash

Source. bashrc

6. Make the MongoDB binaries executable

Chmod 744-r MongoDB/bin

7. Verify MongoDB is running

Mongod-version

8. Start the MongoDB

Screen mongod-dbpath/home/{username}/MongoDB/data-quiet

Now safe to exit your shell Console

Replace {username} with your login name for hostmonster/bluehost. You can find your username in the cpanel on the left where it says username.

They only let you run a program for 5 minutes before killing it, so it's fairly useless to install MongoDB unless you have a dedicated IP.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.