在 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:
- 使用您喜欢的编辑器将 "deb https://apache.bintray.com/couchdb-deb xenial main" 添加到 /etc/apt/sources.list
将public键添加到apt:
卷曲-L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -
根据您的设置,您可能需要为 apt 安装 https
sudo apt-get 安装 apt-transport-https
更新 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.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
- 使用 Digital Ocean WebUI 配置域
- 通过我的 DNS 注册站点添加了一条 A 名称记录以指向我的 Droplet 的 public IP
- 使用 Digital Ocean WebUI 配置了防火墙并将其与我的 droplet 相关联
- 启用了以下入站端口,
- certbot 80
- 5984 CouchDB HTTP - 在配置 HTTPS 之前启用,然后禁用
- 6984 CouchDB HTTPS
- 按照官方文档(对我有用)安装了 CouchDB,http://docs.couchdb.org/en/2.1.1/install/unix.html
- 使用 Let's encrypt certbot 应用程序生成 SSL 证书,https://certbot.eff.org/lets-encrypt/ubuntuxenial-other
- sudo certbot certonly(选项 1 独立)
- 设置一个 crontab 以 运行 certbot 每周更新
- 已修改 CouchDB local.ini 以使用新生成的证书(PEM 文件),请参阅 https://serverfault.com/questions/743452/configure-couchdb-with-lets-encrypt-ssl-certificate
我后来看到了以下与我所做的接近的内容,并且是可用的更好的指南之一,
https://www.joshmorony.com/creating-a-couchdb-database-on-an-ubuntu-server-digital-ocean/
有人知道如何在 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:
- 使用您喜欢的编辑器将 "deb https://apache.bintray.com/couchdb-deb xenial main" 添加到 /etc/apt/sources.list
将public键添加到apt:
卷曲-L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -
根据您的设置,您可能需要为 apt 安装 https
sudo apt-get 安装 apt-transport-https
更新 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.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
- 使用 Digital Ocean WebUI 配置域
- 通过我的 DNS 注册站点添加了一条 A 名称记录以指向我的 Droplet 的 public IP
- 使用 Digital Ocean WebUI 配置了防火墙并将其与我的 droplet 相关联
- 启用了以下入站端口,
- certbot 80
- 5984 CouchDB HTTP - 在配置 HTTPS 之前启用,然后禁用
- 6984 CouchDB HTTPS
- 启用了以下入站端口,
- 按照官方文档(对我有用)安装了 CouchDB,http://docs.couchdb.org/en/2.1.1/install/unix.html
- 使用 Let's encrypt certbot 应用程序生成 SSL 证书,https://certbot.eff.org/lets-encrypt/ubuntuxenial-other
- sudo certbot certonly(选项 1 独立)
- 设置一个 crontab 以 运行 certbot 每周更新
- 已修改 CouchDB local.ini 以使用新生成的证书(PEM 文件),请参阅 https://serverfault.com/questions/743452/configure-couchdb-with-lets-encrypt-ssl-certificate
我后来看到了以下与我所做的接近的内容,并且是可用的更好的指南之一, https://www.joshmorony.com/creating-a-couchdb-database-on-an-ubuntu-server-digital-ocean/