Created
May 5, 2015 15:05
-
-
Save epappas/57f487628ef21595ffd5 to your computer and use it in GitHub Desktop.
install couchdb
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
#! /usr/bin/env bash | |
apt-get update | |
apt-get install -y build-essential | |
apt-get install -y build-essential | |
apt-get install -y erlang-base erlang-dev erlang-nox erlang-eunit | |
apt-get install -y libmozjs185-dev libicu-dev libcurl4-gnutls-dev libtool | |
apt-get install -y curl | |
cd /usr/local/src | |
curl -O http://apache.mirrors.tds.net/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz | |
tar xvzf apache-couchdb-1.6.1.tar.gz | |
la -la | |
cd apache-couchdb-1.6.1/ | |
ls -la | |
./configure | |
make && make install | |
adduser --disabled-login --disabled-password --no-create-home couchdb | |
chown -R couchdb:couchdb /usr/local/var/log/couchdb /usr/local/var/lib/couchdb /usr/local/var/run/couchdb /usr/local/etc/couchdb | |
ln -s /usr/local/etc/init.d/couchdb /etc/init.d | |
update-rc.d couchdb defaults | |
service couchdb start | |
cp /usr/local/etc/couchdb/local.ini /usr/local/etc/couchdb/local.ini.bak |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment