1.
安装依赖
yum install autoconf autoconf-archive automake \
curl-devel erlang-asn1 erlang-erts erlang-eunit \
erlang-os_mon erlang-xmerl help2man \
js-devel-1.8.5 libicu-devel libtool perl-Test-Harness
2.
curl -L -O http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
tar -xf js185-1.0.0.tar.gz
cd js-1.8.5/js/src
./configure
make && make install
3.
下载autoconf-archive
tar -xf autoconf-archive-2016.09.16.tar.xz
cd autoconf-archive-2016.09.16
./configure
make && make install
4.
wget https://www.apache.org/dyn/closer.lua?path=/couchdb/source/1.6.1/apache-couchdb- 1.6.1.tar.gz
tar -zxf apache-couchdb-1.6.1.tar.gz
cd apache-couchdb-1.6.1
./configure --with-erlang=/usr/lib64/erlang/usr/include/erl_driver.h
make && make install
5.
adduser -r --home /usr/local/var/lib/couchdb -M --shell /bin/bash --comment "CouchDB Administrator" couchdb
chown -R couchdb /usr/local/var/lib/couchdb
chown -R couchdb /usr/local/var/run/couchdb
chown -R couchdb:couchdb /usr/local/var/log/couchdb
chmod -R 0770 /usr/local/etc/couchdb
chmod -R 0770 /usr/local/var/lib/couchdb
chmod -R 0770 /usr/local/var/log/couchdb
chmod -R 0770 /usr/local/var/run/couchdb
ln -s /usr/local/etc/rc.d/couchdb /etc/init.d/couchdb
chkconfig --add couchdb
chkconfig --level 1234 couchdb on
vi /usr/local/etc/couchdb/local.in
****
bind_address = xx.xx.xx.xx
***
6.配置密码
vi /usr/local/etc/couchdb/local.ini
**
[admin]
admin = pass
xxx = xxx
转载于:https://blog.51cto.com/itfun/1893351