terça-feira, 24 de maio de 2016
CouchDB on Amazon Linux - Ec2
Steps to install CouchDb on Amazon Linux
1. Change the first entry to:
-> sudo vim /etc/yum.repos.d/epel.repo
-> enabled=1
2. update all packges
-> sudo yum update
3.update develops packages
-> sudo yum groupinstall "Development Tools"
4. necessary tools
-> sudo yum install perl-Test-Harness erlang-erts erlang-os_mon erlang-eunit libicu-devel autoconf-archive curl-devel erlang-etap erlang-asn1 erlang-xmerl js-devel
5. download couch
-> wget http://mirror.ox.ac.uk/sites/rsync.apache.org/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz
6. extract
-> tar zxvf apache-couchdb-1.6.1.tar.gz
7. go to folder apache-couchdb-1.6.1 and execute
-> ./configure --with-erlang=/usr/lib64/erlang/usr/include
-> make
-> sudo make install
8. create user and give permission:
-> sudo adduser -r --home /usr/local/var/lib/couchdb -M --shell /bin/bash --comment "CouchDB Administrator" couchdb
-> sudo chown -R couchdb:couchdb /usr/local/etc/couchdb
-> sudo chown -R couchdb:couchdb /usr/local/var/lib/couchdb
-> sudo chown -R couchdb:couchdb /usr/local/var/log/couchdb
-> sudo chown -R couchdb:couchdb /usr/local/var/run/couchdb
-> sudo chown -R couchdb:couchdb /usr/local/lib/couchdb
-> sudo chmod 0770 /usr/local/etc/couchdb
-> sudo chmod 0770 /usr/local/var/lib/couchdb
-> sudo chmod 0770 /usr/local/var/log/couchdb
-> sudo chmod 0770 /usr/local/var/run/couchdb
-> sudo ln -s /usr/local/etc/rc.d/couchdb /etc/init.d/couchdb
9. start couch
-> sudo /usr/local/etc/rc.d/couchdb start
10. check if everything are working
-> ps aux | grep couchdb
-> curl http://localhost:5984
result should be:
{"couchdb":"Welcome","uuid":"8ea450411a2d8caaad12d2bb23386079","version":"1.6.1","vendor":{"name":"The Apache Software Foundation","version":"1.6.1"}}
Nenhum comentário:
Postar um comentário
Observação: somente um membro deste blog pode postar um comentário.