{"id":787,"date":"2015-02-25T12:11:47","date_gmt":"2015-02-25T19:11:47","guid":{"rendered":"http:\/\/homepages.uc.edu\/~yaozo\/wordpress\/?p=787"},"modified":"2015-02-25T12:11:47","modified_gmt":"2015-02-25T19:11:47","slug":"couchdb-installation","status":"publish","type":"post","link":"https:\/\/zhuoyao.net\/index.php\/2015\/02\/25\/couchdb-installation\/","title":{"rendered":"CouchDB Installation"},"content":{"rendered":"<p>Stable releases of <a href=\"http:\/\/couchdb.apache.org\/\" rel=\"nofollow\">http:\/\/<wbr><\/wbr>couchdb.<wbr><\/wbr>apache.<wbr><\/wbr>org\/<\/a> maintained and provided by the CouchDB project and community, based on the officially released tarballs.<\/p>\n<p>Installation should be straightforward, usual caveats around making backup before upgrading precautions apply, noting that between CouchDB 1.0.1 and 1.5.0 there are a number of key changes, including the on-disk data format used by the .couch files was upgraded. Although it *should* keep your dbs intact and do the right thing for your local.ini files, always have a backup &#8211; or two!<\/p>\n<pre id=\"yui_3_10_3_1_1424891035980_70\" class=\"\">```shell\n# install the ppa-finding tool\n# for 12.04 release\nsudo apt-get install python-<wbr><\/wbr>software-<wbr><\/wbr>properties -y\n# for 14.04 release\nsudo apt-get install software-<wbr><\/wbr>properties-<wbr><\/wbr>common -y\n# add the ppa\nsudo add-apt-repository ppa:couchdb\/stable -y\n# update cached list of packages\nsudo apt-get update -y\n# remove any existing couchdb binaries\nsudo apt-get remove couchdb couchdb-bin couchdb-common -yf\n# see my shiny goodness - note the version number displayed and ensure its what you expect\nsudo apt-get install -V couchdb\n\u00a0\u00a0Reading package lists...\n\u00a0\u00a0Done Building dependency tree\n\u00a0\u00a0Reading state information...\n\u00a0\u00a0Done\n\u00a0\u00a0The following extra packages will be installed:\n\u00a0\u00a0couchdb-bin (x.y.z0-0ubuntu2) couchdb-common (x.y.z-0ubuntu2) couchdb (x.y.z-0ubuntu2)\n\u00a0\u2026 Y \u2026 \n# manage via upstart\nsudo stop couchdb\n\u00a0\u00a0couchdb stop\/waiting\n# update \/etc\/couchdb\/<wbr><\/wbr>local.ini with 'bind_address=<wbr><\/wbr>0.0.0.0' as needed\nsudo start couchdb\n\u00a0\u00a0couchdb start\/running, process 3541\n```<\/pre>\n<p id=\"yui_3_10_3_1_1424891035980_77\">You can of course modify or duplicate the \/etc\/init\/<wbr><\/wbr>couchdb.<wbr><\/wbr>conf script, to support running multiple couchdb instances or users on the same box.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stable releases of http:\/\/couchdb.apache.org\/ maintained and provided by the CouchDB project and community, based on the officially released tarballs. Installation should be straightforward, usual caveats&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-787","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/comments?post=787"}],"version-history":[{"count":0,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/787\/revisions"}],"wp:attachment":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/media?parent=787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/categories?post=787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/tags?post=787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}