{"id":5057,"date":"2018-06-20T14:49:29","date_gmt":"2018-06-20T10:49:29","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-couchdb\/"},"modified":"2018-06-20T14:49:29","modified_gmt":"2018-06-20T10:49:29","slug":"how-to-install-apache-couchdb-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install Apache CouchDB on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>CouchDB is a free and an open source NOSQL database solution implemented in the concurrency-oriented language Erlang. It has a document-oriented NoSQL database architecture. It uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API. CouchDB implements a form of multi-version concurrency control, so it does not lock the database file during writes. You can use CouchDB in mobile devices for replication and synchronization.<\/p>\n<p>In this tutorial, we will learn how to install CouchDB on Ubuntu 18.04 LTS (Bionic Beaver) server.<\/p>\n<h2 id=\"requirements\">Requirements<\/h2>\n<ul>\n<li>A server running Ubuntu 18.04.<\/li>\n<li>A non-root user with sudo privileges.<\/li>\n<\/ul>\n<h2 id=\"install-apache\">Install Apache<\/h2>\n<p>Before starting, you will need to install Apache web server to your system. You can install it by just running the following command:<\/p>\n<p class=\"command\">sudo apt-get install apache2 -y<\/p>\n<p>Once Apache is installed, start Apache web server and enable it to start on boot time by running the following command:<\/p>\n<p class=\"command\">sudo systemctl start apache2<br \/>sudo systemctl enable apache2<\/p>\n<h2 id=\"install-couchdb\">Install CouchDB<\/h2>\n<p>By default, Apache CouchDB is not available in Ubuntu 18.04, so you will need to add the official repository of CouchDB. First, add the repository using the following command:<\/p>\n<p class=\"command\">echo &#8220;deb https:\/\/apache.bintray.com\/couchdb-deb xenial main&#8221; \\ | sudo tee -a \/etc\/apt\/sources.list<\/p>\n<p>Next, sign the added repository with the following command:<\/p>\n<p class=\"command\">curl -L https:\/\/couchdb.apache.org\/repo\/bintray-pubkey.asc \\ | sudo apt-key add &#8211;<\/p>\n<p>Finally, update the CouchDB repository and install it with the following command:<\/p>\n<p class=\"command\">sudo apt-get update -y<br \/>sudo apt-get install couchdb -y<\/p>\n<p>During the installation, you will prompt you for some initial configuration as shown below:<\/p>\n<p><a class=\"fancybox\" id=\"img-page1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_apache_couchdb_on_ubuntu_1804\/big\/page1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts.png\" alt=\"Install CouchDB with apt\" width=\"550\" height=\"333\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_apache_couchdb_on_ubuntu_1804\/big\/page2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts-1.png\" alt=\"Use standalone mode\" width=\"550\" height=\"330\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_apache_couchdb_on_ubuntu_1804\/big\/page3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts-2.png\" alt=\"Bind CouchDB to network address\" width=\"550\" height=\"334\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_apache_couchdb_on_ubuntu_1804\/big\/page4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts-3.png\" alt=\"Set a password\" width=\"550\" height=\"333\" title=\"\"><\/a><\/p>\n<p><a class=\"fancybox\" id=\"img-page5\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_apache_couchdb_on_ubuntu_1804\/big\/page5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts-4.png\" alt=\"Repeat the password\" width=\"550\" height=\"331\" title=\"\"><\/a><\/p>\n<p>Once the installation is finished. Start CouchDB and enable it to start on boot time using the following command:<\/p>\n<p class=\"command\">sudo systemctl start couchdb<br \/>sudo systemctl enable couchdb<\/p>\n<p>You can check the status of CouchDB using the following command:<\/p>\n<p class=\"command\">sudo systemctl status couchdb<\/p>\n<p>Output:<\/p>\n<pre>? couchdb.service - Apache CouchDB&#13; Loaded: loaded (\/lib\/systemd\/system\/couchdb.service; enabled; vendor preset: &#13; Active: active (running) since Sun 2018-06-10 20:22:25 IST; 45s ago&#13; Main PID: 3092 (beam)&#13; CGroup: \/system.slice\/couchdb.service&#13; ??3092 \/opt\/couchdb\/bin\/..\/erts-7.3\/bin\/beam -K true -A 16 -Bd -- -ro&#13; ??3119 \/opt\/couchdb\/bin\/..\/erts-7.3\/bin\/epmd -daemon&#13; ??3145 sh -s disksup&#13; ??3149 \/opt\/couchdb\/bin\/..\/lib\/os_mon-2.4\/priv\/bin\/memsup&#13; ??3150 \/opt\/couchdb\/bin\/..\/lib\/os_mon-2.4\/priv\/bin\/cpu_sup&#13;\n&#13;\nJun 10 20:22:25 Node1 systemd[1]: Started Apache CouchDB.&#13;\nJun 10 20:23:01 Node1 systemd[1]: Started Apache CouchDB.&#13;\nJun 10 20:23:04 Node1 systemd[1]: Started Apache CouchDB.&#13;\n<\/pre>\n<h2 id=\"access-couchdb-web-interface\">Access CouchDB Web Interface<\/h2>\n<p>CouchDB is now started and listening on port 5984. You can access it by visiting the URL <strong>http:\/\/your-server-ip:5984\/_utils\/<\/strong>, you will be redirected to the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_apache_couchdb_on_ubuntu_1804\/big\/page6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts-5.png\" alt=\"CouchDB web interface\" width=\"550\" height=\"283\" title=\"\"><\/a><\/p>\n<p>Now, provide your admin username and password, then click on the <strong>Login<\/strong> button, you should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_apache_couchdb_on_ubuntu_1804\/big\/page7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts-6.png\" alt=\"CouchDB database management interface\" width=\"550\" height=\"282\" title=\"\"><\/a><\/p>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-couchdb%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts-7.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-couchdb%2F&amp;text=How+to+Install+Apache+CouchDB+on+Ubuntu+18.04+LTS&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts-8.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts-9.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-couchdb%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-apache-couchdb-on-ubuntu-18-04-lts-10.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>CouchDB is a free and an open source NOSQL database solution implemented in the concurrency-oriented language Erlang. It has a document-oriented NoSQL database architecture. It uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API. CouchDB implements a form of multi-version concurrency control, so it does not lock &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-5057","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/5057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=5057"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/5057\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=5057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=5057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=5057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}