The CouchDB is an open-source database system, managed by the Apache Software Foundation. It is fault-tolerant, and schema-free NoSQL database management system.
CouchDB store data in document or files with JSON data structure. Each document contains fields and attachments, where fields have text, numbers, lists, Booleans, and more data. The data of this database accessed by using RESTful HTTP/JSON API that use to read, create, edit, and delete database files or documents.
Today, In this tutorial, we will learn how to install CouchDB on Ubuntu 21.04 machine.
Before starting the installation tutorial, make sure you have a Ubuntu 21.04 running machine and user access to log in to the machine with sudo privileges.
CouchDB repository Enable
The CouchDB database’s “.deb” package use to install into Ubuntu Operating system which is available from Official repository of CouchDB.
So, to install CouchDB on Ubuntu machine first need to add and enable the official repository on the system, which can be done by run following commands:
$ echo "deb https://apache.bintray.com/couchdb-deb bionic main" | sudo tee -a /etc/apt/sources.list
$ curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -
Install CouchDB on Ubuntu 21.04
After enabling the repository on Ubuntu system, you can update the repository package list and install CouchDB, as shown below:
$ sudo apt update
$ sudo apt install couchdb
The CouchDB installation available with two different architectures, one is Standalone, and another one Clustered mode.
After running the installation command, the first screen will ask you to choose the installation architecture as we are installing CouchDB into a single system, so we choose the “standalone” mode.
The next screen will appear to enter the IP address of Network interface on which the CouchDB will bind to access. As we are using it in the single server, we can leave the default IP “127.0.0.1” but if you use it in cluster mode enter your IP “0.0.0.0” to access from any server or you can enter the specific IP address to connect from specific server or address.
As I am going to use it on a single server, I’ll leave IP “127.0.0.1” here.
Now, time to set an admin password to access CouchDB. It is highly recommended to create an admin password which will make CouchDB secure for authentication. If you leave password blank on this screen, the admin user will not create.
After confirming the password, CouchDb installation will continue.
Verify CouchDB Installation
You can verify CouchDB installation by running the curl command, which will print database information in JSON format, as shown below:
You can verify CouchDB installation on GUI also by access the IP address on the browser, as shown below:
http://127.0.0.1:5984/_utils/
Conclusion
Congratulation, Now you learned “How to install CouchDB on Ubuntu 21.04 machine?” and you can also verify if already installed CouchDB in any Ubuntu system. You can learn more about CouchDB using Apache CouchDB Documentation.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
0 Comments