{"id":1556,"date":"2019-07-10T23:44:32","date_gmt":"2019-07-10T16:44:32","guid":{"rendered":"https:\/\/www.linuxid.net\/post\/?p=1556"},"modified":"2025-04-18T15:21:58","modified_gmt":"2025-04-18T08:21:58","slug":"cara-install-dan-konfigurasi-couchdb-di-centos-7","status":"publish","type":"post","link":"https:\/\/www.linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/","title":{"rendered":"Cara Install dan Konfigurasi CouchDB di CentOS 7"},"content":{"rendered":"<p>CouchDB adalah database NoSQL open-source yang fault-tolerant\u00a0yang dikelola oleh Apache Software Foundation.<\/p>\n<p>Server CouchDB menyimpan datanya dalam database bernama yang berisi dokumen dengan struktur JSON. Setiap dokumen terdiri dari sejumlah fields dan attachments. Kolom dapat menyertakan text, angka, lists, boolean, dan lainnya.\u00a0CouchDB merupakan RESTful HTTP API yang memungkinkan Anda membaca, membuat, mengedit, dan menghapus dokumen basis data.<\/p>\n<p>Dalam tutorial ini, kita akan membahas proses pemasangan versi terbaru CouchDB di\u00a0 CentOS\u00a07.<\/p>\n<h2>Prasyarat<\/h2>\n<p>Untuk dapat menginstal paket baru pada sistem CentOS, Anda harus masuk sebagai root atau <a href=\"https:\/\/www.linuxid.net\/post\/cara-mengubah-user-biasa-menjadi-user-sudo-di-centos\/\">user dengan hak istimewa sudo<\/a>.<\/p>\n<h2>Aktifkan Repositori CouchDB<\/h2>\n<p>Repositori CouchDB tergantung pada repositori <a href=\"https:\/\/www.linuxid.net\/post\/cara-menambahkan-epel-repository-di-centos\/\">EPEL<\/a>. Jika repositori EPEL belum diaktifkan di sistem Anda, aktifkan dengan mengetik :<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\">sudo yum install epel-release<\/code><\/pre>\n<p>Buka text editor <a href=\"https:\/\/www.linuxid.net\/post\/cara-menggunakan-text-editor-nano-di-baris-perintah-linux\/\">nano<\/a> sebagai root atau<a href=\"https:\/\/www.linuxid.net\/post\/cara-membuat-user-sudo-di-centos\/\"> user dengan hak sudo<\/a> dan buat file repositori CouchDB:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\">sudo nano \/etc\/yum.repos.d\/bintray-apache-couchdb-rpm.repo<\/code><\/pre>\n<p>Paste\u00a0konten berikut ke file:<\/p>\n<pre>[bintray--apache-couchdb-rpm]&#13;\nname=bintray--apache-couchdb-rpm&#13;\nbaseurl=http:\/\/apache.bintray.com\/couchdb-rpm\/el$releasever\/$basearch\/&#13;\ngpgcheck=0&#13;\nrepo_gpgcheck=0&#13;\nenabled=1<\/pre>\n<p>Simpan file dan tutup editor.<\/p>\n<h2>Install CouchDB di CentOS 7<\/h2>\n<p>Instal paket CouchDB dengan menjalankan perintah berikut:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\">sudo yum install couchdb<\/code><\/pre>\n<p>Setelah instalasi selesai, aktifkan dan mulai layanan CouchDB:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\">sudo systemctl start couchdb&#13;\n<\/code><code class=\"terminal-line\">sudo systemctl enable couchdb<\/code><code class=\"language-output\" data-lang=\"output\">&#13;\n<\/code><\/pre>\n<p>Pada langkah selanjutnya, Kita akan membuat user admin dan database dari baris perintah.<\/p>\n<p>Data dan file konfigurasi Apache CouchDB disimpan di direktori <code>\/opt\/couchdb<\/code>. Untuk membuat akun admin, buka file <code>local.ini<\/code> dan tambahkan baris di bawah bagian <code>[admin]<\/code> dalam format <code>username = password<\/code>.<\/p>\n<pre>sudo nano \/opt\/couchdb\/etc\/local.ini<\/pre>\n<pre>[admins]&#13;\nadmin = GantiDenganPasswordAnda&#13;\n<\/pre>\n<p>SImpan file dan tutup editor. Selanjutnya Restart CouchDB service dengan perintah berikut:<\/p>\n<pre>sudo systemctl restart couchdb<\/pre>\n<p>Anda dapat menggunakan format yang sama untuk menambahkan beberapa akun admin. Selalu restart layanan CouchDB setelah menambahkan akun baru.<\/p>\n<p>Gunakan <code>curl<\/code>\u00a0untuk membuat databases sistem <code>_users<\/code>,\u00a0<code>_replicator<\/code>, dan\u00a0<code>_global_changes<\/code>:<\/p>\n<pre>curl -u ADMINUSER:PASS -X PUT http:\/\/127.0.0.1:5984\/_users&#13;\ncurl -u ADMINUSER:PASS -X PUT http:\/\/127.0.0.1:5984\/_replicator&#13;\ncurl -u ADMINUSER:PASS -X PUT http:\/\/127.0.0.1:5984\/_global_changes<\/pre>\n<p>Setiap perintah jika berhasil akan mengeluarkan Output berikut:<\/p>\n<pre>{\"ok\":true}<\/pre>\n<h2>Verifikasi Instalasi CouchDB<\/h2>\n<p>Server CouchDB berjalan di <code>localhost:5984<\/code>. Untuk memverifikasi apakah instalasi telah selesai dengan sukses, jalankan perintah\u00a0<a href=\"https:\/\/www.linuxid.net\/post\/belajar-menggunakan-perintah-curl-di-terminal\/\"><code>curl<\/code>\u00a0<\/a>berikut yang akan mencetak informasi database CouchDB dalam format JSON:<\/p>\n<pre>curl http:\/\/127.0.0.1:5984\/<\/pre>\n<p>Output kurang lebih\u00a0 sebagai berikut.<\/p>\n<pre><code class=\"language-output\" data-lang=\"output\">{  &#13;\n   \"couchdb\":\"Welcome\",&#13;\n   \"version\":\"2.3.1\",&#13;\n   \"git_sha\":\"c298091a4\",&#13;\n   \"uuid\":\"17a6b911e0d5bfe36778b387510dbd93\",&#13;\n   \"features\":[  &#13;\n      \"pluggable-storage-engines\",&#13;\n      \"scheduler\"&#13;\n   ],&#13;\n   \"vendor\":{  &#13;\n      \"name\":\"The Apache Software Foundation\"&#13;\n   }&#13;\n}&#13;\n<\/code><\/pre>\n<p>Jika Anda lebih suka GUI, Anda dapat mengakses interface berbasis web CouchDB, Fauxton di:<\/p>\n<pre><code class=\"language-url\" data-lang=\"url\">http:\/\/127.0.0.1:5984\/_utils\/<\/code><\/pre>\n<p><a href=\"https:\/\/www.linuxid.net\/assets\/media\/debian\/32987\/couchdb-fauxton.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-large wp-image-32995\" src=\"https:\/\/www.linuxid.net\/assets\/media\/debian\/32987\/couchdb-fauxton-750x525.jpg\" alt=\"couchdb fauxton\" width=\"696\" height=\"487\"\/><\/a><\/p>\n<h2>Kesimpulan<\/h2>\n<p>Kami telah menunjukkan kepada Anda cara menginstal CouchDB CentOS 7. Langkah Anda berikutnya adalah mengunjungi Dokumentasi <a href=\"http:\/\/docs.couchdb.org\/en\/stable\/\">CouchDB <\/a>dan menemukan informasi lebih lanjut tentang topik ini.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CouchDB adalah database NoSQL open-source yang fault-tolerant\u00a0yang dikelola oleh Apache Software Foundation. Server CouchDB menyimpan&hellip;<\/p>\n","protected":false},"author":2,"featured_media":1557,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[38,15,111,188],"class_list":["post-1556","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-apache","tag-centos","tag-centos-8","tag-couchdb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cara Install dan Konfigurasi CouchDB di CentOS 7 - Linuxid<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"id_ID\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cara Install dan Konfigurasi CouchDB di CentOS 7 - Linuxid\" \/>\n<meta property=\"og:description\" content=\"CouchDB adalah database NoSQL open-source yang fault-tolerant\u00a0yang dikelola oleh Apache Software Foundation. Server CouchDB menyimpan&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Linuxid\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-10T16:44:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-18T08:21:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxid.net\/post\/wp-content\/uploads\/2025\/03\/Cara-Install-dan-Konfigurasi-CouchDB-di-CentOS-7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"530\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"xsand\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Ditulis oleh\" \/>\n\t<meta name=\"twitter:data1\" content=\"xsand\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimasi waktu membaca\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 menit\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/\",\"url\":\"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/\",\"name\":\"Cara Install dan Konfigurasi CouchDB di CentOS 7 - Linuxid\",\"isPartOf\":{\"@id\":\"https:\/\/linuxid.net\/post\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/Cara-Install-dan-Konfigurasi-CouchDB-di-CentOS-7.jpg\",\"datePublished\":\"2019-07-10T16:44:32+00:00\",\"dateModified\":\"2025-04-18T08:21:58+00:00\",\"author\":{\"@id\":\"https:\/\/linuxid.net\/post\/#\/schema\/person\/e6642d26041eab9fef2677e204e89d79\"},\"breadcrumb\":{\"@id\":\"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/#breadcrumb\"},\"inLanguage\":\"id\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"id\",\"@id\":\"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/#primaryimage\",\"url\":\"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/Cara-Install-dan-Konfigurasi-CouchDB-di-CentOS-7.jpg\",\"contentUrl\":\"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/Cara-Install-dan-Konfigurasi-CouchDB-di-CentOS-7.jpg\",\"width\":1000,\"height\":530},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Beranda\",\"item\":\"https:\/\/linuxid.net\/post\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cara Install dan Konfigurasi CouchDB di CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxid.net\/post\/#website\",\"url\":\"https:\/\/linuxid.net\/post\/\",\"name\":\"Linuxid\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxid.net\/post\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"id\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxid.net\/post\/#\/schema\/person\/e6642d26041eab9fef2677e204e89d79\",\"name\":\"xsand\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"id\",\"@id\":\"https:\/\/linuxid.net\/post\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cc8513768e15fa0758099a0ba5b898f3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cc8513768e15fa0758099a0ba5b898f3?s=96&d=mm&r=g\",\"caption\":\"xsand\"},\"url\":\"https:\/\/www.linuxid.net\/post\/author\/xsand\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cara Install dan Konfigurasi CouchDB di CentOS 7 - Linuxid","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/","og_locale":"id_ID","og_type":"article","og_title":"Cara Install dan Konfigurasi CouchDB di CentOS 7 - Linuxid","og_description":"CouchDB adalah database NoSQL open-source yang fault-tolerant\u00a0yang dikelola oleh Apache Software Foundation. Server CouchDB menyimpan&hellip;","og_url":"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/","og_site_name":"Linuxid","article_published_time":"2019-07-10T16:44:32+00:00","article_modified_time":"2025-04-18T08:21:58+00:00","og_image":[{"width":1000,"height":530,"url":"https:\/\/linuxid.net\/post\/wp-content\/uploads\/2025\/03\/Cara-Install-dan-Konfigurasi-CouchDB-di-CentOS-7.jpg","type":"image\/jpeg"}],"author":"xsand","twitter_card":"summary_large_image","twitter_misc":{"Ditulis oleh":"xsand","Estimasi waktu membaca":"2 menit"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/","url":"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/","name":"Cara Install dan Konfigurasi CouchDB di CentOS 7 - Linuxid","isPartOf":{"@id":"https:\/\/linuxid.net\/post\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/Cara-Install-dan-Konfigurasi-CouchDB-di-CentOS-7.jpg","datePublished":"2019-07-10T16:44:32+00:00","dateModified":"2025-04-18T08:21:58+00:00","author":{"@id":"https:\/\/linuxid.net\/post\/#\/schema\/person\/e6642d26041eab9fef2677e204e89d79"},"breadcrumb":{"@id":"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/#breadcrumb"},"inLanguage":"id","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"id","@id":"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/#primaryimage","url":"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/Cara-Install-dan-Konfigurasi-CouchDB-di-CentOS-7.jpg","contentUrl":"https:\/\/www.linuxid.net\/post\/wp-content\/uploads\/2025\/03\/Cara-Install-dan-Konfigurasi-CouchDB-di-CentOS-7.jpg","width":1000,"height":530},{"@type":"BreadcrumbList","@id":"https:\/\/linuxid.net\/post\/cara-install-dan-konfigurasi-couchdb-di-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Beranda","item":"https:\/\/linuxid.net\/post\/"},{"@type":"ListItem","position":2,"name":"Cara Install dan Konfigurasi CouchDB di CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/linuxid.net\/post\/#website","url":"https:\/\/linuxid.net\/post\/","name":"Linuxid","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxid.net\/post\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"id"},{"@type":"Person","@id":"https:\/\/linuxid.net\/post\/#\/schema\/person\/e6642d26041eab9fef2677e204e89d79","name":"xsand","image":{"@type":"ImageObject","inLanguage":"id","@id":"https:\/\/linuxid.net\/post\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cc8513768e15fa0758099a0ba5b898f3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cc8513768e15fa0758099a0ba5b898f3?s=96&d=mm&r=g","caption":"xsand"},"url":"https:\/\/www.linuxid.net\/post\/author\/xsand\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/posts\/1556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/comments?post=1556"}],"version-history":[{"count":1,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/posts\/1556\/revisions"}],"predecessor-version":[{"id":2899,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/posts\/1556\/revisions\/2899"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/media\/1557"}],"wp:attachment":[{"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/media?parent=1556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/categories?post=1556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxid.net\/post\/wp-json\/wp\/v2\/tags?post=1556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}