Skip to content

shoken0x/mongodb-init-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

MongoDB Init Script

This is Init Script for MongoDB based on rpm.

rpm is here. http://docs.mongodb.org/manual/tutorial/install-mongodb-on-redhat-centos-or-fedora-linux/

repository https://github.com/mongodb/mongo/tree/master/rpm

Usage:

# mongod {start|stop|restart|status}

Settings

Please change below values for your environment in each file.

in mongod

MONGOHOME = "your mongo home path"

in mongod.conf

dbpath = "your db path"

If you need you make 'data' dir on dbpath.

Install and run

execute command as root.

# cp mongod /etc/init.d/
# chmod +x  /etc/init.d/mongod
# cp mongod.conf /etc/
# chkconfig --add mongod

# service mongod {start|stop|restart|status}

About

MongoDB Init Script for CentOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages