How to Install Apache CouchDB 2.3.0 in Linux?
Apache CouchDB (CouchDB) is a NoSQL document database that collects and stores data in JSON-formatted documents. CouchDB, unlike relational databases, uses a schema-free data model, making record management simpler across a range of computing devices, mobile phones, and web browsers.
CouchDB was first published in 2005, and in 2008, it was designated as an Apache Software Foundation project. CouchDB is backed by an active group of developers who are constantly improving the platform with an emphasis on ease of use and web integration.
Installing the Apache CouchDB
Enabling the Apache CouchDB package repository
Run the following command to enable the repository.
$ sudo apt-get install -y gnupg ca-certificates

Install Certificate
$ echo "deb https://apache.bintray.com/couchdb-deb focal main" | sudo tee /etc/apt/sources.list.d/couchdb.list

Add Repository
Installing the dependencies
You can install the dependencies by running:
sudo apt-get –no-install-recommends -y install build-essential pkg-config erlang libicu-dev libmozjs185-dev libcurl4-openssl-dev

Installing dependencies
All necessary dependencies should now be installed.
Installing the Apache CouchDB packages
First, install the CouchDB repository key:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8756C4F765C9AC3CB6B85D62379CE192D401AB61

Install Key
Then update the repository cache and install the package:
$ sudo apt update

Update the repository cache
$ sudo apt install -y couchdb

Installing Couchdb
You’ll be given the option to choose between standalone and cluster mode. Choose the stand-alone option.

Choose standalone
Then you’ll be prompted to enter the target IP address of the network interface where the installation will take place. We won’t change the default address, which is 127.0.0.1, for a single-server standalone installation.

Set bind-address
To create an admin account, you must first create a strong password. You will be able to continue using the admin party mode without having to build an admin account. This is not recommended since admin party mode is vulnerable to web access and therefore unreliable.

Set password
Verifying Apache CouchDB:
Using the curl command, verify that the installation went smoothly. This command will view important information about CouchDB’s status and compliance with the installation. On localhost:5984, the CouchDB server will be running.
$ sudo systemctl status couchdb

Verifying Apache CouchDB
Go to http://127.0.0.1:5984/_utils/ to access your control panel.

Login
Click the database icon located at the far left of the panel and hit the ‘Create Database’ button at the top-right of the screen.

Create database
CouchDB integrates seamlessly with almost all modern web applications, including those built for mobile devices, making it an excellent tool for reading, producing, editing, and changing database documents.
Please Login to comment...