Apache CouchDB is open-source database software that focuses on ease of use and having a scalable architecture. Apache CouchDB lets you access your data where you need it.

In this guide, we will explain how to install CouchDB on Debian 9.

Deploying your cloud server
If you have not already registered with Cloudwafer, you should begin by getting signed up. Take a moment to create an account after which you can quickly deploy your cloud servers.

Once you have signed up, log into your Cloudwafer Client Area with the password provided in your mail and deploy your Cloudwafer cloud server.

Updating System Packages
It is recommended that you update the system to the latest packages before beginning any major installations. Issue the command below:

sudo apt-get update && sudo apt-get upgrade

Step 1: Enabling CouchDB repository
The CouchDB package is not included in the Debian repositories by default hence we are going to enable them from their official repositories. Issue the following commands to enable the CouchDB repository and import its GPG key:

echo "deb https://apache.bintray.com/couchdb-deb bionic main" | sudo tee -a /etc/apt/sources.list
curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -

Step 2: Install CouchDB
After successfully enabling the CouchDB repository, issue the following command to update your APT repository and install the CouchDB packages:

 sudo apt update
 sudo apt install couchdb

Install CouchDB in a standalone or clustered mode:

Next is an option to set the IP address of the network interface on which the CouchDB will bind.

Next, set and confirm the admin password, which is highly recommended.

Step 2: Enable and Start CouchDB
After installation, enable and start the CouchDB service bu issuing the commands below:

sudo systemctl start couchdb
sudo systemctl enable couchdb

Step 3: Verifying CouchDB Installation
Issue the command below to verify our CouchDB installation which will print the CouchDB database information in JSON format:


You can visit the Apache CouchDB Documentation to learn more about CouchDB.