This article covers how to install CouchDB on Ubuntu Linux System. Apache offers us various options for working with data and information on the web and one of its many derivations is Apache CouchDB.
CouchDB is a popular NoSQL database developed and maintained by Apache Foundation since 2005.
It is an open-source database written in Erlang language that provides a RESTful API that users can use to create and modify database objects.
Main Features of CouchDB:
1. CouchDB has a clustered database, thus allowing you to run a logical database server regardless of the number of servers or virtual machines.
2. By using apache CouchDB we have a single node database which acts under an application server.
3. It makes use of the HTTP protocol and the JSON data format, being compatible with any software that supports them.
4. CouchDB's unique replication protocol generates "Offline First" applications for mobile applications and other environments that have infrastructure
high impact network.
To install Apache CouchDB on Ubuntu:
1. Enable the Apache CouchDB repository, for this we download and install the GPG key with the following command:
$ curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -
2. Now we add the repository, for this we execute:
$ sudo nano /etc/apt/sources.list
3. At the bottom we add the line:
deb https://apache.bintray.com/couchdb-deb focal main
4. We save the changes using the following key combination:
Ctrl + O
And exit the editor using:
Ctrl + X
5. We update the operating system with the following command.
$ sudo apt update
6. Next, we install Apache CouchDB:
$ sudo apt install apache2 couchdb
To see the status of Apache CouchDB, run the command:
$ sudo systemctl status couchdb.service