In this article, we will have explained the necessary steps to install and configure Apache CouchDB on Ubuntu 18.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.
Apache CouchDB is a free software resource which allows us to access data from where necessary by defining the Coach Replication Protocol, which was implemented by a variety of projects and products that cover all IT environments, from globally distributed server clusters, or mobile phones to web browsers.
Install Apache CouchDB on Ubuntu
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade
Step 2. Install Apache CouchDB on Ubuntu 18.04.
First, Enabling CouchDB repository:
curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add - echo "deb https://apache.bintray.com/couchdb-deb bionic main" | sudo tee -a /etc/apt/sources.list
Now that the repository is enabled update the packages list and install CouchDB:
sudo apt update sudo apt install couchdb
After the installation finishes, we will start the service and enable it to run at the start of the system:
sudo systemctl start couchdb sudo systemctl enable couchdb
To verify whether the installation has completed successfully run the following curl command which will print the CouchDB database information in JSON format:
curl http://127.0.0.1:5984/
Result:
{ "couchdb":"Welcome", "version":"2.4.1", "git_sha":"046a0c7", "uuid":"1d2074ramona28c30240e0c7384036acf", "features":[ "pluggable-storage-engines", "scheduler" ], "vendor":{ "name":"The Apache Software Foundation" } }
If you prefer GUI, you can access the CouchDB web-based interface, Fauxton at:
http://127.0.0.1:5984/_utils/
That’s all you need to do to install CouchDB on Ubuntu 18.04 LTS. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.