• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install CouchDB on Debian 10 Buster

Written by Admin, Updated On August 15, 2020
couchdb, database, debian
How to Install CouchDB on Debian 10

Apache CouchDB is an open-source NoSQL database developed by the Apache Software Foundation. It uses JSON to represent data stored in a database. The CouchDB replication allows you to synchronize two or more CouchDB databases. CouchDB RESTful HTTP/JSON API allows you to read, edit, delete and create database documents. In this tutorial, we will explain how to install CouchDB on Debian 10 Buster.

Step 1 – Enabling CouchDB repository#

First of all we will enable the CouchDB repository and import GPG key as root or user with sudo privileges:

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

Step 2 – Installing CouchDB#

Once the repository is enabled, update the packages list and install CouchDB:

sudo apt update
sudo apt install couchdb

Installer will prompt you to choose option whether you want to install CouchDB in a standalone or clustered mode. We’ll install the CouchDB in a single-server standalone mode.

couchdb-select-mode

Next, you can set IP address on which CouchDB will bind. Leave it as default value 127.0.0.1. If you are configuring a cluster, enter the interface IP address or type 0.0.0.0, which tells CouchDB to binds to all network interfaces.

couchdb-select-interface

After that, set the password for admin. If you leave this field blank it will not create admin user. It is highly recommended to set the password, and take CouchDB out of the insecure “admin party” mode.

couchdb-confirm-password

Again enter the password to confirm and the installation will continue.

couchdb-create-admin

Step 3 – Verify Installation#

The CouchDB server will run at localhost:5984. Run the following curl command to display information about the CouchDB database in JSON format:

curl http://127.0.0.1:5984/

If it will print output as following means that the installation was successful and the service is running.

{
   "couchdb":"Welcome",
   "version":"3.0.0",
   "git_sha":"03a77db6c",
   "uuid":"adab3f42ce6a06245d2955c1d6832266",
   "features":[
      "access-ready",
      "partitioned",
      "pluggable-storage-engines",
      "reshard",
      "scheduler"
   ],
   "vendor":{
      "name":"The Apache Software Foundation"
   }
}

You can access the CouchDB web-based interface by entering http://127.0.0.1:5984/_utils/ to your web browser. It will show as following:

couchdb-fauxton

Conclusion#

You have learned how to install CouchDB on Debian 10 system. To learn more, take a look at Apache CouchDB Documentation.

If you have any question or feedback, please leave comment below.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article How to Install and Use FFmpeg on Debian 10
Next Article   How to Install Apache Maven on Debian 10

Related Posts

  • How to Install Php 8 on Debian 10

    How to Install PHP 8 on Debian 10

    January 2, 2021
  • How to Install GIMP on Debian 10

    How to Install GIMP 2.10 on Debian 10

    December 27, 2020
  • How to Install Python 3.9 on Debian 10

    How to Install Python 3.9 on Debian 10

    December 25, 2020

Leave a Reply Cancel reply

Popular Posts

  • How to Install Python 3.9 on Debian 10
    How to Install Python 3.9 on Debian 10 December 25, 2020
  • How to Install Python 3.9 on Ubuntu 20.04
    How to Install Python 3.9 on Ubuntu 20.04 December 21, 2020
  • How to Install GIMP on Ubuntu 20.04
    How to Install GIMP 2.10 on Ubuntu 20.04 December 22, 2020
  • How to Install Notepad++ on Debian 10
    How to Install Notepad++ on Debian 10 December 23, 2020
  • How to Install Php 8 on Debian 10
    How to Install PHP 8 on Debian 10 January 2, 2021
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook