curl https://couchdb.apache.org/repo/keys.asc | gpg --dearmor | sudo tee /usr/share/keyrings/couchdb-archive-keyring.gpg >/dev/null 2>&1 source /etc/os-release echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ focal main" | sudo tee /etc/apt/sources.list.d/couchdb.list >/dev/null export COUCHDB_PASSWORD=password echo "couchdb couchdb/mode select standalone couchdb couchdb/mode seen true couchdb couchdb/cookie string 12345 couchdb couchdb/cookie seen true couchdb couchdb/bindaddress string 127.0.0.1 couchdb couchdb/bindaddress seen true couchdb couchdb/adminpass password ${COUCHDB_PASSWORD} couchdb couchdb/adminpass seen true couchdb couchdb/adminpass_again password ${COUCHDB_PASSWORD} couchdb couchdb/adminpass_again seen true" | sudo debconf-set-selections sudo apt-get update sudo DEBIAN_FRONTEND=noninteractive apt-get install -y couchdb
You can verify it is running with the following command:
curl http://127.0.0.1:5984