This repository has been archived by the owner on Jul 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Couchdb help
frankrousseau edited this page Oct 10, 2012
·
10 revisions
For specific installation see this link. For Debian/Ubuntu run this commands :
sudo apt-get install build-essential erlang libicu-dev libmozjs-dev libcurl4-openssl-dev
wget http://apache.mirrors.multidist.eu/couchdb/releases/1.2.0/apache-couchdb-1.2.0.tar.gz
tar -xzvf apache-couchdb-1.2.0.tar.gz
cd apache-couchdb-1.2.0
./configure
make
make install
rm -rf apache-couchdb-1.2.0
rm -rf apache-couchdb-1.2.0.tar.gz
sudo adduser --system --home /usr/local/var/lib/couchdb --no-create-home --shell /bin/bash --group --gecos "CouchDB_Administrator" couchdb
chown -R couchdb:couchdb /usr/local/etc/couchdb
chown -R couchdb:couchdb /usr/local/var/lib/couchdb
chown -R couchdb:couchdb /usr/local/var/log/couchdb
chown -R couchdb:couchdb /usr/local/var/run/couchdb
chmod 0770 /usr/local/etc/couchdb
chmod 0770 /usr/local/var/lib/couchdb
chmod 0770 /usr/local/var/log/couchdb
chmod 0770 /usr/local/var/run/couchdb
Then use a daemon manager like upstart or supervisorsd. Here is an configuration file for supervisord :
[program:couchdb]
autorestart=true
autostart=true
command=couchdb
environment=HOME=/usr/local/var/lib/couchdb
redirect_stderr=true
Connect to http://localhost:5984/_utils . You will access to the Futon UI that allows you to see every data and views set in your CouchDB instance.