YouTube Icon

Code Playground.

How to Install CouchDB on CentOS 8


How to Install CouchDB on CentOS 8

Apache CouchDB is a free and open-source NoSQL information base created by the Apache Software Foundation. It tends to be utilized as a solitary hub or grouped information base. 

CouchDB worker stores its information in named information bases, which contains reports with JSON structure. Each record comprises of various fields and connections. Fields can incorporate content, numbers, records, booleans, more. It incorporates a RESTful HTTP API that permits you to peruse, make, alter, and erase information base records. 

In this article, we will cover the establishment of CouchDB on CentOS 8. 

Enabling CouchDB Repository

The simplest method to introduce CouchDB on CentOS 8 is to empower the merchant archive and introduce the twofold bundles. 

Open your proofreader of decision as root or client with sudo benefits and make the CouchDB vault record: 

sudo nano /etc/yum.repos.d/bintray-apache-couchdb-rpm.repo

Glue the accompanying substance to the document: 



Spare the document and close the manager. 

Installing CouchDB on CentOS

Introduce the CouchDB bundles by running the accompanying order: 

sudo dnf install couchdb

When the establishment is finished, empower and start the CouchDB administration: 

sudo systemctl enable --now couchdb

Configuring CouchDB

CouchDB can be set up in a solitary hub or a bunched mode. In this model, we'll send the worker in single-hub setup. Check the official documentation about how to set up CouchDB in grouped mode. 

You can design CouchDB utilizing the Fauxton, at or from the order line. The Setup Wizard will control you through the mode determination and administrator creation. 

We'll make the administrator client and the information bases from the order line. 

Apache CouchDB information and setup records are put away in the/select/couchdb catalog. To make an administrator account, open the local.ini document and include a line under the [admins] area in the arrangement username = secret word. 

sudo nano /opt/couchdb/etc/local.ini


admin = mysecretpassword

Restart the CouchDB administration to change the secret key to a hash: 

sudo systemctl restart couchdb

You can utilize a similar organization to include various administrator accounts. Continuously restart the CouchDB administration subsequent to including another record. 

Use twist to make the framework information bases _users, _replicator, and _global_changes: 


Each order should restore the accompanying: 


Verifying CouchDB Installation

The CouchDB worker is running at localhost:5984. To confirm whether the establishment was fruitful and the administration is running, run the accompanying twist order that will print data about the CouchDB information base in JSON design: 


For clarity, the output below is formatted.

      "name":"The Apache Software Foundation"

In the event that you lean toward GUI, you can get to the CouchDB electronic interface, Fauxton at:


We've told you the best way to introduce CouchDB on CentOS 8. Your following stage could be to visit the Apache CouchDB Documentation and discover more data on this subject. 

Don't hesitate to leave a remark in the event that you have any inquiries.