Would you like to learn how to install CouchDB service on Ubuntu Linux? In this tutorial, we are going to show you all the steps required to perform the Apache CouchDB installation on Ubuntu Linux in 5 minutes or less.

• Ubuntu 18.04
• Ubuntu 19.10
• Apache CouchDB 2.3.1

In our example, the CouchDB service will listen on the TCP port 5984.

CouchDB – Related Tutorial:

On this page, we offer quick access to a list of tutorials related to CouchDB.

Tutorial – CouchDB Installation on Ubuntu Linux

Install the required packages.

Copy to Clipboard

Install the CouchDB service.

Copy to Clipboard

The CouchDB service will be installed on the following directory: /snap/couchdb.

The CouchDB Data will be stored on the following directory: /var/snap/couchdb.

Verify if the CouchDB service was installed.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Edit the CouchDB configuration file named local.ini.

Copy to Clipboard

Inside the configuration file, locate the following line.

Copy to Clipboard

Enable the BIND_ADDRESS configuration and change its value to 0.0.0.0.

Copy to Clipboard

Restart the CouchDB service.

Copy to Clipboard

Use the NETSTAT command to verify if the service is running on port 5984.

Copy to Clipboard

In our example, the CouchDB service is running on all addresses on the TCP port 5984.

Copy to Clipboard

Open your browser and enter the IP address of your CouchDB server plus :5984/_utils#setup.

In our example, the following URL was entered in the Browser:

• http://192.168.15.10:5984/_utils#setup

The CouchDB web installation interface should be presented.

Click on the button to configure a single node.

CouchDB installation

Set the administrator account and password.

In our example, the password kamisma123 was set to the user named admin.

Click on the Configure node button to finish the installation.

ConchDB Setup

Test your communication with the CouchDB service.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Congratulations! You have finished the installation of CouchDB on Ubuntu Linux.

Tutorial CouchDB – Command Examples

Create a new database named techexpert.

Copy to Clipboard

To create a database, you need to provide credentials with administrative permission.

In our example, we used the account named ADMIN and the password KAMISAMA123.

Here is the command output.

Copy to Clipboard

If you try to create a database in CouchDB without providing any credentials.

Copy to Clipboard

The following error message will be displayed.

Copy to Clipboard

List all databases available on the CouchDB.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

List all nodes available on the CouchDB.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Create a new account with administrative privileges.

Copy to Clipboard

In our example, we created a user account called BRUNO with the password SUPERPASSWORD.