Install CouchDB on Debian/Ubuntu/Fedora/CentOS
This is a quick tutorial on installing CouchDB on major Linux distributions which use the apt
and dnf
package managers.
We will be installing CouchDB on Debain/Ubuntu and Fedora/CentOS systems.
CouchDB 2.x.x on Debian /Ubuntu Systems
We first fetch the system's packages and update them to their newer versions.
sudo apt-get update
To install CouchDB on Debian/Ubuntu systems, run the command
sudo apt-get install couchdb
CouchDB 2.x.x on Fedora /CentOS Systems
Similarly, for the Fedora/CentOS systems, we first update the system's packages and then install CouchDB.
su -
dnf update
dnf install couchdb
Starting CouchDB
After the installation, we could start CouchDB.
In Debain /Ubuntu systems, use the below command
sudo start couchdb
In Fedora /CentOS systems, use
systemctl start couchdb.service
To see if it is running, type the following command into the console
curl localhost:5984
It should output a JSON response, similar to the one shown below
Or you can also type localhost:5984
into the browser's address bar, and it will give the same
The Fauxton Web Interface
CouchDB 2.x.x has a built-in web-based single-page interface for admin called Fauxton. If CouchDB is running, typing http://localhost:5984/_utils/
in the browser's address bar will give you the Fauxton welcome screen
The Futon Web Interface
Earlier versions of CouchDB have a slightly different interface called Futon. For example, the Futon of CouchDB 1.5.0 looks like below: