29 C
Texas
angeloma
Senior Writer and partner

How to install Apache CouchDB on Ubuntu 18.04?

The NoSQL database concept is very fashionable. So much so that we talk about it here. Its speed and design make it perfect for cloud-based projects. Today, I’ll show you how to install Apache CouchDB on Ubuntu 18.04.

CouchDB is a database manager oriented to NoSQL documents belonging to the Apache foundation. Its main strength is its focus on scalability. In addition, it allows you to run a single logical database server on any number of servers or VMs. Of course, it is Open source. So, you can join the community.

On the other hand, CouchDB takes the reliability of the data very seriously and its replication protocol makes it a safe bet to carry out your personal projects without data problems.

So, let’s install Apache CouchDB.

1. Install Apache web server

- Advertisement -

So, the first step is to install Apache web server. It enjoys great popularity among developers for its ease of installation and its great compatibility with multiple applications.

To install it, run this command:

:~$ sudo apt install apache2

1.- Installing Apache2
1.- Installing Apache2

Next, enable and start the Apache web server service.

:~$ sudo systemctl enable apache2
:~$ sudo systemctl start apache2

2.- Starting Apache web server
2.- Starting Apache web server

Now, open your web browser and go to http://IP_SERVER. If everything went OK, you will see this image.

3.- Apache default page
3.- Apache default page

Apache web server is correctly installed.

2. Install Apache CouchDB

CouchDB is a great application but is not included by default in the main Ubuntu repositories. Therefore, it is necessary to install it from an external one.

First, add the repository.

:~$ echo "deb https://apache.bintray.com/couchdb-deb bionic main"  | sudo tee -a /etc/apt/sources.list

4.- Adding the CouchDB repository
4.- Adding the CouchDB repository

Next, sign the added repository:

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

5.- Signing the newly added repository
5.- Signing the newly added repository

Then, install CouchDB.

:~$ sudo apt update && sudo apt install couchdb

6.- Install Apache CouchDB package
6.- Install Apache CouchDB package

During the installation process, you will need to configure CouchDB. The first question is how to configure CouchDB. There are 3 options, Standalone for a single server; clustered if you will use a cluster or none if you want to configure it manually.

7.- Configuring CounchDB
7.- Configuring CouchDB

After this, it is necessary to configure the network interface of the CouchDB node. In the image are the instructions, however, it is recommended 0.0.0.0.0 for you to be able to access from all networks.

8.- Configuring the networks on CouchDB
8.- Configuring the networks on CouchDB

Finally, set a password for admin user.

9.- Setting a password for admin user
9.- Setting a password for the admin user

Next, start and enable the service.

:~$ sudo systemctl start couchdb
:~$ sudo systemctl enable couchdb

Finally, open your web browser and go to http://YOUR_IP:5984/_utils and access the web interface to manage the program.

10.- Log in into the program
10.- Login into the program

11.- Main screen of CouchDB web interface
11.- Main screen of CouchDB web interface

And that’s it.

Conclusion

CouchDB is a fairly new program that belongs to Apache. This guarantees us a fairly stable, reliable and Open source product to handle NoSQL databases.

Please share this article with your friends.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article