Install SQL/noSQL
normally, you’d want only one of the following:
Install MySQL
The world’s most popular open source database
1 2 3 4 |
yum install mysql mysql-server chkconfig --levels 235 mysqld on /etc/init.d/mysqld start mysql_secure_installation |
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)
1 2 3 4 5 6 7 8 |
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 |
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:
1 2 3 4 |
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 |
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:
1
yum install couchdb
yum install couchdb
- Edit config file to suit:
1
vi /etc/couchdb/local.ini
vi /etc/couchdb/local.ini
- Start CouchDB:
1
service couchdb start
service couchdb start
- Set it to start automatically on reboots:
1
chkconfig --level 345 couchdb on
chkconfig --level 345 couchdb on
more information: http://wiki.apache.org/couchdb/Installing_on_RHEL5
Development Specialist, Artist and Activist
Personal Website