In this tutorial we’ll learn how to install Apache CouchDB on CentOS 7. We will also install and configure its prerequisites. Apache CouchDB is a free software source which allows us to access data from where necessary by specifying the Mentor Replication Protocol, which has been executed by an assortment of jobs and products that cover all IT environments, from globally distributed server clusters, or cellular phones to internet browsers.
I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install Apache CouchDB on CentOS 7
Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:
yum -y install epel-release yum -y update
Step 2. Installing dependencies Apache CouchDB.
Use the command below to install dependencies:
yum install autoconf autoconf-archive automake curl-devel erlang gcc-c++ help2man js-devel libicu-devel libtool perl-Test-Harness unzip zip wget
Step 3. Installing Apache CouchDB.
First add the official repository of CouchDB itself for easy installation through the package manager:
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
Next, install Apache CouchDB by running the following line:
yum install couchdb
After the installation process is finished. start CouchDB and make it run at startup:
systemctl start couchdb systemctl enable couchdb
Step 4. 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:
Find the “[chttpd]” directive and change the “bind_address” like below:
bind_address = 0.0.0.0
Restart the CouchDB service to take effect:
systemctl restart couchdb
Step 5. Accessing Apache CouchDB from a web browser.
Now, to access Apache CouchDB, we go to a browser and enter the following syntax. This will be the first environment of Apache CouchDB in CentOS 7:
Congratulation’s! You have successfully install Apache CouchDB on your CentOS 7 server. Thanks for using this tutorial for installing Apache CouchDB on CentOS 7 system.