在 Ubuntu 服务器 16.04 上安装 CouchDB 2.1

Installing CouchDB 2.1 on Ubuntu Server 16.04

有人知道如何在 Ubuntu Server 16.04 上安装 CouchDB 吗?

CouchDB docs 中的手册似乎已损坏,一个简单的 apt-get install couchdb 结果版本 1.6.1。

试试 CouchDB 的 snap,目前还没有 CouchDB 2.1 的 apt 包。 http://docs.couchdb.org/en/latest/install/snap.html。 (如果这是您已经从手册中尝试过的方法但它不起作用,请分享您收到的任何错误消息)

这将安装 CouchDB 2.1:

  1. 使用您喜欢的编辑器将 "deb https://apache.bintray.com/couchdb-deb xenial main" 添加到 /etc/apt/sources.list
  2. 将public键添加到apt:

    卷曲-L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -

  3. 根据您的设置,您可能需要为 apt 安装 https

    sudo apt-get 安装 apt-transport-https

  4. 更新 apt 并安装!

    sudo apt-get update && sudo apt-get install couchdb

您可以使用此脚本在 Ubuntu 16.04 上安装 coushDB 2.x : https://github.com/afiskon/install-couchdb :

 mkdir temp
 cd temp
 wget https://raw.githubusercontent.com/afiskon/install-couchdb/master/install-couchdb.sh
sh install-couchdb.sh
# then see http://localhost:5984/_utils/

我在 Digital Ocean droplet 上安装了 CouchDB 2.1.1,运行ning 在 Ubuntu 16(xenial)上,使用 HTTPS(使用 Let's encrypt 免费证书)。

大致步骤如下,

我后来看到了以下与我所做的接近的内容,并且是可用的更好的指南之一, https://www.joshmorony.com/creating-a-couchdb-database-on-an-ubuntu-server-digital-ocean/