逝者如斯夫

静而思之
数据加载中……

Building CouchDB 1.0.2 from source (CentOS/RHEL 5)

Dependencies

CouchDB

Runtime

Build

Spidermonkey

Erlang

ICU

cURL

Automake

Autoconf

0.9.x

==1.7

>=5.6.0

>= 3.0

>= 7.15.5

>= 1.6.3

>= 2.59

0.10.x

>=1.7 && <=1.8.0

>=5.6.5

>= 3.0

>= 7.18.0

>= 1.6.3

>= 2.59

0.11.x

>=1.7

>=5.6.5

>= 3.0

>= 7.18.0

>= 1.6.3

>= 2.59

1.0.2

>=1.7

>=5.6.5

>= 3.0

>= 7.18.0

>= 1.6.3

>= 2.59



wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libicu-3.6-5.16.x86_64.rpm
wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libicu-devel-3.6-5.16.x86_64.rpm
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/js-1.70-8.el5.x86_64.rpm
wget http://download.fedora.redhat.com/pub/epel/5/SRPMS/js-1.70-8.el5.src.rpm
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/js-devel-1.70-8.el5.x86_64.rpm

wget http://curl.haxx.se/download/curl-7.21.6.tar.gz
wget http://labs.renren.com/apache-mirror/couchdb/1.0.2/apache-couchdb-1.0.2.tar.gz

tar -xzf curl-7.21.6.tar.gz
cd curl-7.21.6
./configure --prefix=/usr/local
make
make install
cd ..

rpm -ivh *.rpm

tar -xzf apache-couchdb-1.0.2.tar.gz
cd apache-couchdb-1.0.2
./configure --prefix=/usr/local/couchdb --with-erlang=/usr/lib64/erlang/usr/include
make
make install
cd ..


rm -rf apache-couchdb-1.0.2 curl-7.21.6

/usr/sbin/useradd -r --home /usr/local/couchdb/var/lib/couchdb -M --shell /bin/bash --comment "CouchDB Administrator" couchdb

mkdir -p /var/www/apps/couchdb/data
mkdir -p /var/www/apps/couchdb/view
mkdir -p /usr/local/var/lib/couchdb
mkdir -p /usr/local/var/log

chown -R couchdb: /usr/local/couchdb/var/lib/couchdb /usr/local/couchdb/var/log/couchdb /var/www/apps/couchdb


# [httpd]
# port = 5984
# bind_address = 127.0.0.1 (your binding ip address here)
vi /usr/local/couchdb/etc/couchdb/default.ini

# -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5984 -j ACCEPT
vi /etc/sysconfig/iptables
/sbin/service iptables restart

ln -s /usr/local/couchdb/etc/rc.d/couchdb /etc/init.d/couchdb

/sbin/chkconfig --add couchdb
/sbin/service couchdb start

curl http://localhost{IP}:5984{PORT}/  
{"couchdb":"Welcome","version":"1.0.2"}


posted on 2011-05-10 14:05 ideame 阅读(343) 评论(0)  编辑  收藏 所属分类: ErlangConfiguration


只有注册用户登录后才能发表评论。


网站导航: