Step 1: Install EPEL Repo
dnf install epel-release -y
Step 2: Create and install CouchDB repository
create couchdb.repo file using below command.
now add below configuration in this file.
save changes to file and exit.
Step 3: Install CouchDB on CentOS 8
use following command to install CouchDB
dnf install couchdb -y
Step 4: CouchDB Necessary Configuration
Now we are going to make CouchDB configuration so that we can access it from browser. Secondly CouchDB can also be configured in clustered and Standalone mode, however in this guide we will configure it in standalone mode.
we need to make changes in local.ini file located under /opt/couchdb/etc/ directory.
If you want to access your DB from external IP addresses, locate [chttpd] section. Uncomment the port and bind-address lines. Also, set the bind-address from 127.0.0.1 to 0.0.0.0 to allow access from external IP addresses.
port = 5984
bind_address = 0.0.0.0
now locate [admins] section, uncomment the line admin = mypassword and set your desired password so that you can access admin account.
admin = mypassword
Step 5: Start and enable CouchDB services
systemctl start couchdb
systemctl enable couchdb
systemctl status couchdb
Step 6: Firewall Configurations
CouchDb listen on port 5984 so we must enable this port in firewall.
firewall-cmd --permanent --zone=public --add-port=5984/tcp
Step 7: Access CouchDB Web Interface
CouchDB has been installed and configured, now verify that everything is going good regarding CouchDB. Run below command to verify:
If everything is successful, you will see similar output.
Finally open your web browser, use following URL with your Server IP address and enter your admin login details to access CouchDB.
After logging in you can create your databases by following steps in given screenshot.
Once you click on create button, you database will be appeared.
You have installed CouchDB successfully, now you can explore more things from its web bases interface.