<\/span><\/h2>\n\n\n\nFirst, log in to your Ubuntu 20.04 server via SSH as the root user:<\/p>\n\n\n\n
ssh root@IP_Address -p Port_number<\/pre>\n\n\n\nYou will need to replace ‘IP_Address’ and ‘Port_number’ with your server’s respective IP address and SSH port number. Additionally, replace ‘root’ with the username of the admin account if necessary.<\/p>\n\n\n\n
Before starting, you have to make sure that all Ubuntu OS packages installed on the server are up to date. You can do this by running the following commands:<\/p>\n\n\n\n
apt-get update -y\napt-get upgrade -y<\/pre>\n\n\n\n<\/span>Step 2 : Install Required Dependencies<\/span><\/h2>\n\n\n\nBefore starting, you will need to install some dependencies in your server. You can install all of them with the following command:<\/p>\n\n\n\n
apt-get install curl software-properties-common apt-transport-https gnupg2 -y<\/pre>\n\n\n\nOnce all the dependencies are installed, you can proceed to install CouchDB.<\/p>\n\n\n\n
<\/span>Step 3 : Install CouchDB<\/span><\/h2>\n\n\n\nBy default, CouchDB is not available in the Ubuntu standard repository. So you will need to add the CouchDB repository to your system.<\/p>\n\n\n\n
First, add the GPG key with the following command:<\/p>\n\n\n\n
curl -L https:\/\/couchdb.apache.org\/repo\/bintray-pubkey.asc | apt-key add -<\/pre>\n\n\n\nNext, add the CouchDB repository to the APT:<\/p>\n\n\n\n
echo \"deb https:\/\/apache.bintray.com\/couchdb-deb focal main\" | tee -a \/etc\/apt\/sources.list<\/pre>\n\n\n\nNext, update the repository and install the CouchDB using the following command:<\/p>\n\n\n\n
apt-get update -y\napt-get install couchdb -y<\/pre>\n\n\n\nDuring the installation, you will be asked to install a CouchDB in a standalone or cluster mode as shown below:<\/p>\n\n\n\n <\/figure>\n\n\n\n<\/p>\n\n\n\n
Select standalone<\/strong> and press Enter<\/strong>. You will be asked to set the listening IP address as shown below:<\/p>\n\n\n\n<\/p>\n\n\n\n <\/figure>\n\n\n\nType 0.0.0.0<\/strong> for all network interfaces and press Enter<\/strong>. You will be asked to set a password admin user as shown below:<\/p>\n\n\n\n<\/p>\n\n\n\n <\/figure>\n\n\n\nType<\/strong> and confirm<\/strong> the password and press Enter<\/strong> to finish the installation.<\/p>\n\n\n\n