On this article we will discuss how to install Apache CouchDB on CentOS 8 operating system.
Increasing human activity will be correlated with increasing data generated. The use of social media, shopping transactions, uploading video tutorials, and so on will produce more data exponentially. The use of relational databases, which have dominated for decades, is felt to be heavy enough to accommodate the exponential data generated at this time. There are currently many NoSQL databases available and in use, including: MongoDB, Redis, CouchDB which are usually initiated by the open source community. CouchDB as a noSQL database has its own fan base and is used in applications that running a business. On this occasion, we will discuss how to install CouchDB on CentOS 8.
Apache CouchDB Installation on CentOS 8
Before we are going to start the installation, we need to prepare our system environment is supports for the Apache CouchDB installation process. The installation process will consist of several stages, namely:
EPEL (Extra Packages for Enterprise Linux) is repository project from Fedora team that provides an easy access to install packages for commonly used software. EPEL project is not a part of RHEL/CentOS but it was designed for major Linux distributions. EPEL provides lots of open source packages like networking tools, sysadmin tools, programming, monitoring and other tools. Most of the EPEL packages are maintained by Fedora repo. At this article, we will discuss how to install EPEL on Centos 7.
$ sudo dnf install epel-release -y
output will be as follow :
[ramans@otodiginet ~]$ sudo dnf install epel-release -y
[sudo] password for ramans:
Elasticsearch repository for 7.x packages 2.0 kB/s | 1.3 kB 00:00
Elasticsearch repository for 7.x packages 824 kB/s | 17 MB 00:20
ELRepo.org Community Enterprise Linux Repositor 1.3 kB/s | 2.9 kB 00:02
ELRepo.org Community Enterprise Linux Repositor 101 kB/s | 310 kB 00:03
Extra Packages for Enterprise Linux Modular 8 - 4.4 kB/s | 8.3 kB 00:01
Extra Packages for Enterprise Linux Modular 8 - 73 kB/s | 132 kB 00:01
Extra Packages for Enterprise Linux 8 - x86_64 6.3 kB/s | 7.5 kB 00:01
Extra Packages for Enterprise Linux 8 - x86_64 133 kB/s | 8.0 MB 01:01
MySQL 8.0 Community Server 12 kB/s | 2.5 kB 00:00
MySQL Connectors Community 20 kB/s | 2.5 kB 00:00
MySQL Tools Community 20 kB/s | 2.5 kB 00:00
Oracle Linux / RHEL / CentOS-8 / x86_64 - Virtu 364 B/s | 181 B 00:00
Package epel-release-8-8.el8.noarch is already installed.
Nothing to do.
On this sub section, we will configure CouchDB on stand alone environment, where CouchDB can also be configured in clustered. Also we will configure CouchDB to be accessed via web browser and set the admin password for this new installed CouchDB. For this purpose we will update the configuration file which is located on : /opt/couchdb/etc/local.ini.
[ramans@otodiginet ~]$ sudo vi /opt/couchdb/etc/local.ini
port = 5984
;bind_address = 127.0.0.1
bind_address = 0.0.0.0
admin = mysecretpassword
To confirm that CouchDB is working as expected, use the curl command to print CouchDB’s information in JSON format. To verify if CouchDB is working normal, we will test it by using curl command line to query the CoucDB status.