Created
August 21, 2017 09:40
-
-
Save madpink/3f40e4097630fc2c3fc9dc26c8b903dc to your computer and use it in GitHub Desktop.
Install CouchDB 2.1 on Ubuntu/Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install nano curl apt-transport-https runit -y | |
sudo nano /etc/apt/sources.list | |
### add the line: | |
---------------------------------------- | |
deb https://apache.bintray.com/couchdb-deb xenial main | |
---------------------------------------- | |
curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install couchdb -y | |
sudo mkdir /etc/sv/couchdb && sudo mkdir /etc/sv/couchdb/log | |
sudo nano /etc/sv/couchdb/log/run | |
---------------------------------------- | |
#!/bin/sh | |
exec svlogd -tt /var/log/couchdb | |
---------------------------------------- | |
sudo nano /etc/sv/couchdb/run | |
---------------------------------------- | |
#!/bin/sh | |
export HOME=/home/couchdb | |
exec 2>&1 | |
exec chpst -u couchdb /opt/couchdb/bin/couchdb | |
---------------------------------------- | |
sudo chmod u+x /etc/sv/couchdb/log/run && sudo chmod u+x /etc/sv/couchdb/run | |
sudo ln -s /etc/sv/couchdb/ /etc/service/couchdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment