How to Install CouchDB on Ubuntu 16.04 and 18.04

 

Apache CouchDB is an open-source archive arranged NoSQL database, actualized in Erlang, CouchDB utilizes numerous organizations and conventions to store, move, and procedure its information, it utilizes JSON to store information, JavaScript as its question language utilizing MapReduce, and HTTP for an API, CouchDB was first discharged in 2005 and later turned into an Apache Software Foundation venture in 2008.

In this post, We will install Apache CouchDB server using 16.04 and 18.04.

Step 1: Update System

To install any packages, You need to update the ubuntu current repository by following the command.

$ sudo apt-get update

Step 2: Add CouchDB Repository

You need to add the repository and then you need to enable to install the package, To do that you need to use the following command.

$ sudo curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add –
$ sudo echo “deb https://apache.bintray.couchdbcom/couchdb-deb bionic main” | sudo tee -a /etc/apt/sources.list

Step 3: Install CouchDB

To install CouchDB use the following command.

$ sudo apt-get update && sudo apt-get install couchdb -y

During the installation, you will be asked whether you need to introduce CouchDB in an independent or grouped mode. We will introduce the CouchDB in a solitary server independent mode.

Next, you’ll be given an alternative to set the IP address of the system interface on which the CouchDB will tie to. For single-server arrangement leave the default 127.0.0.1. In the event that you are designing a group enter the interface IP address or type 0.0.0.0 which will cause CouchDB to ties to all system interfaces.

On the following brief set the administrator secret word. It is strongly prescribed to set the secret word which will remove CouchDB from the unreliable “administrator party” mode. In the event that you leave this field clear, an administrator client won’t be made.

At last, affirm the secret key and the CouchDB establishment will proceed.

Step 4: Testing CouchDB

To check whether the establishment has finished effectively run the accompanying twist order which will print the CouchDB database data in JSON design:

$ curl http://127.0.0.1:5984/

After this, Now we ready to login Admin panel of CouchDB for that you need to the browser with given url.

http://127.0.0.1:5984/_utils/

How to Install CouchDB on Ubuntu 16.04 and 18.04

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top