How To Install MongoDB Via Yum On CentOS/Amazon Linux
erics, January 18th, 2012
Procedure
1 2 3 4 5 6 7 8 9 |
vim /etc/yum.repos.d/10gen.repo yum install mongo-10gen mongo-10gen-server vim /etc/mongod.conf - set dbpath variable mkdir /volumes/data/mongo chown mongod:mongod /volumes/data/mongo chmod 2775 /volumes/data/mongo chkconfig mongod on service mongod start pecl install mongo |
/etc/yum.repos.d/10gen.repo For 64-bit:
1 2 3 4 |
[10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 |
For 32-bit:
1 2 3 4 |
[10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686 gpgcheck=0 |
Resource Links http://www.mongodb.org/display/DOCS/CentOS+and+Fedora+Packages http://www.if-not-true-then-false.com/2010/install-mongodb-on-fedora-centos-red-hat-rhel/ http://devzone.zend.com/1730/getting-started-with-mongodb-and-php/