Install Apache CouchDB on CentOS 7
Through this tutorial, we will demonstrate how to install and configure CouchDB with Apache.
Step 1: Configure VPSie cloud server
- Sign in to your system or register a newly created one by logging in to your VPSie account.
- Connect by SSH using the credentials we emailed you.
- 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,
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,