Instantly share code, notes, and snippets.

Embed
What would you like to do?
sudo apt-get install --yes build-essential curl git
sudo apt-get install --yes python-software-properties python g++ make
sudo apt-get install -y erlang-dev erlang-manpages erlang-base-hipe erlang-eunit erlang-nox erlang-xmerl erlang-inets
sudo apt-get install -y libmozjs185-dev libicu-dev libcurl4-gnutls-dev libtool
wget http://mirror.wanxp.id/apache/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz
tar xvzf apache-couchdb-*
cd apache-couchdb-*
./configure && make
sudo make install
sudo useradd -d /var/lib/couchdb couchdb
sudo mkdir /var/lib/couchdb
sudo mkdir /var/log/couchdb
sudo chown -R couchdb: /var/lib/couchdb /var/log/couchdb
sudo chown -R couchdb: /usr/local/var/{lib,log,run}/couchdb /usr/local/etc/couchdb
sudo chmod 0770 /usr/local/var/{lib,log,run}/couchdb/
sudo chmod 664 /usr/local/etc/couchdb/*.ini
sudo chmod 775 /usr/local/etc/couchdb/*.d
cd /etc/init.d
sudo ln -s /usr/local/etc/init.d/couchdb couchdb
sudo /etc/init.d/couchdb start
sudo update-rc.d couchdb defaults
curl http://127.0.0.1:5984/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment