HugeServer Knowledgebase

How to install Apache CouchDB on CentOS 7

Introduction

Apache CouchDB is an Open-Source NoSQL database which is focused on scalability architecture. Apache CouchDB is a document-oriented NoSQL database. Each database is a collection of independent documents and does not store data and relationships in tables. CouchDB was released in 2005 for the first time and became an Apache Software Foundation project in 2008.
In this tutorial, we are going to install the latest version of CouchDB with Apache and do some initial configuration.

Install Apache

If you don’t have Apache installed you can install it easily with the following command:

yum install httpd

After that you can start Apache and make it run at the startup:

systemctl start httpd

systemctl enable httpd

Install CouchDB

Apache CouchDB is not provided by the official RHEL repository, but we can add the official repository of CouchDB itself for easy installation through the package manager. First of all, create a “.repo” file with the following command:

nano /etc/yum.repos.d/couchdb.repo

Paste the following line in the file then save and exit:

[bintray--apache-couchdb-rpm]
name=bintray--apache-couchdb-rpm
baseurl=http://apache.bintray.com/couchdb-rpm/el$releasever/$basearch/
gpgcheck=0
repo_gpgcheck=0
enabled=1

Now you can easily install CouchDB with the command below:

yum install couchdb

After the installation process is finished. start CouchDB and make it run at startup:

systemctl start couchdb

systemctl enable couchdb

You can check the status of your service with the two below commands:

systemctl status couchdb

netstat -ln | grep 5984

Enable Apache CouchDB Fauxton Panel

Apache CouchDB provides an HTTP panel for Admin access on default port “5984”. In this section, we are going to enable the admin panel to be accessible over the Internet.

Open the CouchDB main configuration file with the following command:

nano /opt/couchdb/etc/default.ini

find the “[chttpd]” directive and change the “bind_address” like below:

bind_address = 0.0.0.0

Save and Exit.

Restart the CouchDB service to take effect:

systemctl restart couchdb

Now you can open your browser and see your Domain or public IP address through it like below:

http://DOMAIN_OR_IP:5984/_utils/

And you should see the Fauxton UI page like below:


 
You can check out Apache CouchDB official website for more information and news!

Was this tutorial helpful?

Thank you for your vote.Thank you for your vote.

Similar Posts

One thought on “How to install Apache CouchDB on CentOS 7”

Leave a Reply to Lucas Rodrigues Fogaça Cancel reply

Your email address will not be published. Required fields are marked *

*