Written in Erlang language, Apache CouchDB is a free, reliable NoSQL database engine that natively supports data in JSON format. This makes it more scalable and easy to model your data as opposed to traditional SQL relational databases such as MySQL. The killer feature in CouchDB is its replication which spans a wide spectrum of computing devices and various computing environments to provide high availability and on-demand access to data.
To make your study more useful, contact the Eldernode team as a VPS provider to have your own Linux Virtual Server.
Table of Contents
Tutorial Install Apache CouchDB on CentOS 8
Let’s walk through the steps of this article to learn how to install Apache CouchDB on CentOS 8.
CouchDB can be configured either as a standalone mode or in a clustered mode. In this guide, however, you are going to configure the CouchDB server in the single-mode configuration. Also, you will configure CouchDB such that we can access it via a web browser.
CouchDB’s configuration files are located in the /opt/couchdb/etc/ directory. You are going to make a few configurations in the local.ini file. So open the file using your favorite editor.
# vi /opt/couchdb/etc/local.ini
In the[admins] section, create an admin account by uncommenting the line just below it and define the password for admin in the format.
[admins] admin = mypassword
Next, scroll to the [chttpd] section. Uncomment the port and bind-address values. Also, set the bind-address to 0.0.0.0 to allow access from external IP addresses. You can later change this value for security reasons.
[chttpd] port = 5984 bind_address = 0.0.0.0
Save the changes and exit the configuration file. For the changes to take effect, restart CouchDB.
systemctl restart couchdb
If you are running a firewall on the server, you must open port 5984 to allow traffic to CouchDB.
As you can observe, only two databases are present as we have deleted the users_db database.
In this article, you succeeded to finish learning Tutorial Install Apache CouchDB on CentOS 8. From now on you will be able to install and configure CouchDB on CentOS 8 system comfortably. In case you are interested in reading more related articles, find our articles on How to install Yarn on CentOS 8.