Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install Apache CouchDB in Ubuntu 20.04 - DesignLinux

Jan 07 2021
designlinux 0 Comments

Implemented in Erlang, Apache CouchDB, simply referred to as CouchDB, is an open-source NoSQL database that focuses on data storage in JSON format. CouchDB is a perfect choice for operation teams and businesses looking for a high-performance NoSQL database solution. Unlike relational databases such as MySQL, CouchDB uses a schema-free data model, simplifying records management across various computing devices.

This tutorial shows you how to install the latest version of Apache CouchDB on Ubuntu 20.04.

Step 1: Enable the CouchDB Repository

To start off, log in to your server instance and import the GPG key as shown.

$ curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc   | sudo apt-key add -

Next, be sure to enable the CouchDB repository as shown.

$ echo "deb https://apache.bintray.com/couchdb-deb focal main" >> /etc/apt/sources.list

Once the repository and key are added, proceed to the next step.

Step 2: Install Apache CouchDB in Ubuntu

Having enabled the CouchDB repository, the next step will be to update the package lists of Ubuntu and install Apache CouchDB as shown.

$ sudo apt update
$ sudo apt install apache2 couchdb -y
Install CouchDB in Ubuntu
Install CouchDB in Ubuntu

You will need to select options to configure your CouchDB. In this prompt, you configure either in standalone or clustered mode. Since we are installing on a single server, we will opt for the single-server standalone option.

Configure CouchDB in Ubuntu
Configure CouchDB in Ubuntu

In the next prompt, you are supposed to configure the network interface on which the CouchDB will bind to. In standalone server mode, the default is 127.0.0.1 (loopback).

Configure CouchDB Network Interface
Configure CouchDB Network Interface

If it’s the clustered mode, enter the interface IP address of the server or type 0.0.0.0, which binds CouchDB to all network interfaces.

Configure CouchDB Interface for Cluster Mode
Configure CouchDB Interface for Cluster Mode

Next, set the admin password.

Set CouchDB Admin Password
Set CouchDB Admin Password

Confirm the set password to finalize your installation.

Step 3: Verify CouchDB Installation

The CouchDB server listens to TCP port 5984 by default. To quench your curiosity, run the netstat command as shown.

$ netstat -pnltu | grep 5984

To verify whether the installation was successful and the service is running, run the curl command below. You should get the following information about the CouchDB database which is printed in JSON format.

$ curl http://127.0.0.1:5984/

The output in your terminal will look like this:

Verify CouchDB Installation
Verify CouchDB Installation

Step 4: Access CouchDB Web Interface

You can open your browser and browse to http://127.0.0.1:5984/_utils/ and type in the admin username and password to login to your database:

CouchDB Login
CouchDB Login

After Apache CouchDB is successfully configured and installed, use the commands below to start, enable, stop, and check its status.

$ sudo systemctl start couchdb.service
$ sudo systemctl enable couchdb.service
$ sudo systemctl stop couchdb.service

The check status command shows:

$ sudo systemctl status couchdb.service
Check CouchDB Status
Check CouchDB Status
Conclusion

For more information on CouchDB, refer to the Apache CouchDB Documentation. It’s our hope that you can now comfortably install CouchDB on Ubuntu 20.04.

Related

Tags: Apache CouchDB Tips, Ubuntu Tips

How to Install Apache Kafka in CentOS/RHEL 7

Prev Post

How to Manage Virtual Machines in KVM Using Virt-Manager

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 0
  • 485
  • 606,235

DesignLinux.com © All rights reserved

Go to mobile version