Installing Couchdb 1.2 on Ubuntu 12.04 server
Helpful links: http://cvee.github.com/blog/2011/11/28/configuring-couchdb-on-ubuntu/1) install git
apt-get install git2) make directory for source
mkdir /data/couchdb_source3) put source files into directory
cd /data/couchdb_source git clone http://git-wip-us.apache.org/repos/asf/couchdb.git4) change branch to version you need. We will be checking out 1.2.0
cd /data/couchdb_source/couchdb git checkout 1.2.05) Install dependencies needed to build couchdb
sudo apt-get -y install build-essential autoconf automake libtool erlang libicu-dev libmozjs-dev libcurl4-openssl-dev6) Build the configure and make files
./bootstrap ./configure --prefix=/data/couchdb make && sudo make install7) Create a user account dedicated for CouchDB and update permissions
sudo adduser --system --home /data/couchdb/var/lib/couchdb --no-create-home --shell /bin/bash --group --gecos "CouchDB Administrator" couchdb sudo chown -R couchdb:couchdb /data/couchdb sudo chmod 0770 -R /data/couchdb8) Update Admin pass
/data/couchdb/etc/couchdb/local.iniChange:
[admins] root = [PASS]9) Make it so couchdb will startup automatically
sudo cp /data/couchdb/etc/init.d/couchdb /etc/init.d sudo update-rc.d couchdb defaults10) Update Couchdb Config settings
nano /data/couchdb/etc/couchdb/default.inia) set delayed_commits - false
b) set reduce_limit - false
11) Open firewall
iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 5984 -j ACCEPT iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 6984 -j ACCEPT
12) Start Couchdb
service couchdb start
Have you seen an build problem as a result of the deprecation of SSHv2 in OpenSSL 1.x.x?
ReplyDeleteThere are calls made to OpenSSL SSHv2 methods that no longer exist.