Debian is very known to be a robust system. Not in vain is the basis of many other Linux distributions and many subsystems. So Debian is the ideal Linux distribution for the storage of scalable data. In this sense, we are presented with several database managers oriented to their scalability. For that reason, in this post, I will teach you how to install CouchDB in Debian 10 so that you have a professional database manager with community support.
CouchDB is a database manager for the web. It takes care of saving and storing NoSQL type data for server-side applications. It is widely used and its learning curve is very low.
On the other hand, CouchDB places a lot of emphasis on data replication as a persistent way to obtain data. That is, we will be able to connect multiple nodes and from there do the replication.
Of course, there are a lot of features and reasons why this project of the Apache Foundation is so important today.
So, let us start.
Install CouchDB on Debian 10
Apache CouchDB has installers for Linux. There is even a package repository that makes it very easy to install. In this sense, it is convenient to use it.
First, add the CouchDB repository for Debian 10.
:~$ echo "deb https://apache.bintray.com/couchdb-deb buster main" | sudo tee -a /etc/apt/sources.list
deb https://apache.bintray.com/couchdb-deb buster main
To secure the installation, it is necessary to add the GPG key to the repository. However, some necessary packages must be installed first:
:~$ sudo apt install curl gnupg
Once we have them installed, we can add the GPG key.
:~$ curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -
OK
Now, we have to refresh the APT cache and then install CouchDB on Debian 10.
:~$ sudo apt update
:~$ sudo apt install couchdb
During the installation, we will be asked to make some small adjustments.
First, if couchdb will work on a node, or if we are configuring a cluster.
Then, we will be able to establish the IP address of the cluster or node. In this case, by choosing the address 0.0.0.0 we can make the equipment accessible to all the network interfaces.
Then, you need to define a strong password. After that, Apache CouchDB is ready to work.
Using the CouchDB web interface
Managing Apache CouchDB is really easy thanks to its powerful web interface. So let’s get to it.
Open your favorite web browser and go to http://your-server:5984/_utils
. Remember that in “your-server” you have to put the IP address of the server or its DNS.
As you can see, the application uses port 5984. So, if you have a firewall working, you have to open that port.
Well, you will see this screen:
The username is admin and the password that you have defined before. Once you have done that, you will see this:
Then, it is a good idea to verify that the entire installation has been a success. For this, on the left side, there is a button that has a check mark. Click on it and then on the Verify installation button.
As you can see in the picture, the installation has been a success.
Finally, you can configure a cluster or a specific node. This is already to your needs.
So, that is it. You can start to work.
Conclusion
Apache CouchDB is a database manager clearly focused on the professional environment, but this does not prevent it from being used in learning and personal environments. So today you have learned how to install it on a server with Debian 10.
Please share this post and join our Telegram channel.