Install Apache CouchDB on CentOS 7

Table of Contents

Install Apache CouchDB on CentOS 7

 

 

Open source CouchDB is a NoSQL document database, built in Erlang. Several formats and protocols are used by CouchDB for storing, transferring, and processing data. JSON is used for data storage, JavaScript for querying using MapReduce, and HTTP is used for an API. In a database, every document is an independent document and data and relationships are not stored in tables. The first version of CouchDB was released in 2005 and turned into an Apache Software Foundation project in 2008.

 

Through this tutorial, we will demonstrate how to install and configure CouchDB with Apache.

 

 

 

Step 1: Configure VPSie cloud server

 

 

  1. Sign in to your system or register a newly created one by logging in to your VPSie account
  2. Connect by SSH using the credentials we emailed you.
  3. Once you have logged into your CentOS instance, run these commands to update your system.
sudo yum update

 

 

Step 2: Install Apache

 

It is easy to install Apache if you don’t have it already, simply follow the instructions,

 

yum install httpd

 

When that is done, start Apache so that it runs at startup,

 

# systemctl start httpd

# systemctl enable httpd

 

 

Step 3: Install CouchDB

 

The official RHEL repository does not include CouchDB, but we can add it using the package manager. To get started, create a “.repo” file by following these steps,

 

nano /etc/yum.repos.d/couchdb.repo

 

Save and exit the file after pasting the following line,

 

[bintray--apache-couchdb-rpm]
name=bintray--apache-couchdb-rpm
baseurl=http://apache.bintray.com/couchdb-rpm/el$releasever/$basearch/
gpgcheck=0
repo_gpgcheck=0
enabled=1

 

Here’s how to install CouchDB,

 

yum install couchdb

 

Upon completing the installation process. Enable CouchDB to run at startup,

 

# systemctl start couchdb

# systemctl enable couchdb

 

Here are two commands you can use to check your service’s status,

 

# systemctl status couchdb

# netstat -ln | grep 5984

 

 

Step 4: Activate the Apache CouchDB Fauxton Panel

 

With the following command, open CouchDB’s main configuration file, Save and Exit.

 

# nano /opt/couchdb/etc/default.ini

# bind_address = 0.0.0.0

 

In order for the changes to take effect, you must restart CouchDB,

 

systemctl restart couchdb

 

Your public IP address or domain address can be viewed through your browser,

 

http://{Your IP}:5984/_utils/

 

Please refer to the official documentation for more information.

 

That’s it, Thanks for reading! I hope it was informative for you! 

 

Upgrade Fedora version 33 to 34

Apache CouchDB is an open-source NoSQL database that uses JSON for data storage and provides a RESTful HTTP API for querying and manipulating data.

You can install Apache CouchDB on CentOS using the following command: sudo dnf install couchdb

 Apache CouchDB requires CentOS 7 or higher, 64-bit architecture, and at least 2 GB of RAM.

You can check the status of the Apache CouchDB service using the following command: sudo systemctl status couchdb

You can enable the Apache CouchDB service to start automatically on boot using the following command: sudo systemctl enable couchdb

Make a Comment
Share on
Facebook
Twitter
LinkedIn
Print
VPSie Cloud service

Unlock Your

20% Discount

The First 3 orders get 20% discount! Try Sign up on VPSie to get a chance to get the discount.