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

yum install mysql mysql-server
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
mysql_secure_installation

Install MongoDB

scalable, high-performance NoSQL database with Document-oriented storage (JSON-style documents)

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

 

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:

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
  • Install the couchdb package from EPEL: 
    yum install couchdb
  • Edit config file to suit: 
    vi /etc/couchdb/local.ini
  • Start CouchDB: 
    service couchdb start
  • Set it to start automatically on reboots: 
    chkconfig --level 345 couchdb on

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

 

 

Development Specialist, Artist and Activist
Personal Website

Leave a Reply

Your email address will not be published.

*