Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

This branch is even with alvinlaw:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
mongodb

README

*****************************************************
Instructions and script are from Ewan's blog:
http://www.ewanleith.com/blog/15/mongodb-initd-script

All you need to do is download the file to your Linux server, (mongodb) and copy it to /etc/init.d, then fix the permissions. 

The following commands should do it:

 cp mongodb.txt /etc/init.d/mongodb

 chmod 755 /etc/init.d/mongodb

 chown root:root /etc/init.d mongodb

Finally, you just need to run the following 2 commands to set mongodb to start on boot:

 chkconfig —add mongodb

 chkconfig mongodb on

The script works on Centos, but should work fine on Ubuntu, RHEL, etc with minimal changes.

Something went wrong with that request. Please try again.