VMWare Workstation start on boot CentOS

MySQL MongoDB CouchDB on Centos 6.3

MySQL MongoDB CouchDB

Install SQL/noSQL

normally, you’d want only one of the following:

Install MySQL

The world’s most popular open source database

[code lang=”bash”]yum install mysql mysql-server
chkconfig –levels 235 mysqld on
/etc/init.d/mysqld start
mysql_secure_installation[/code]

Install MongoDB

scalable, high-performance NoSQL database with Document-oriented storage (JSON-style documents)
[code lang=”bash”]echo [10gen] > /etc/yum.repos.d/10gen.repo
echo name=10gen Repository >> /etc/yum.repos.d/10gen.repo
echo baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 >> /etc/yum.repos.d/10gen.repo
echo gpgcheck=0 >> /etc/yum.repos.d/10gen.repo
echo enabled=1 >> /etc/yum.repos.d/10gen.repo
yum update -y
yum install -y mongo-10gen mongo-10gen-server
service mongod start[/code]

 

This MongoDB instance will store its data files in the /var/lib/mongo and its log files in /var/log/mongo, and run using the mongod user account.

Replace ‘x86_64‘ with ‘i686′ for 32bit version (not recommended for production by 10gen)

more on mongo installtion and testing

Install CouchDB

Apache CouchDB™ is a database that uses JSON for documents, JavaScript for MapReduce queries, and regular HTTP for an API

to install CouchDB you need to have EPEL repo installed:

[code lang=”bash”]cd /opt/
wget http://mirrors.nl.eu.kernel.org/fedora-epel/6/i386/epel-release-6-7.noarch.rpm
rpm -Uvh epel-release-6-7.noarch.rpm
rm epel-release-6-7.noarch.rpm -f[/code]

  • Install the couchdb package from EPEL: [code lang=”bash”]yum install couchdb[/code]
  • Edit config file to suit: [code lang=”bash”]vi /etc/couchdb/local.ini[/code]
  • Start CouchDB: [code lang=”bash”]service couchdb start[/code]
  • Set it to start automatically on reboots: [code lang=”bash”]chkconfig –level 345 couchdb on[/code]

more information: http://wiki.apache.org/couchdb/Installing_on_RHEL5

 

 

Leave a Reply

Your email address will not be published.

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.