Install & Configure Apache CouchDB 1.6.1 on Ubuntu 14.04
What is Apache CouchDB?
-- Apache CouchDB is an open source document-oriented database with NoSQL. NoSQL means, it doesn’t have any database schema, tables, rows, etc. CouceDB uses JSON to store data with documents, which you can access from a web browser via HTTP. CouchDB works smoothly with all latest modern web and mobile apps.
Step: 1. Install Build Tools & Required Dependencies :
# apt-get update
# apt-get -y upgrade
# apt-get -y install build-essential erlang-base-hipe erlang-dev erlang-manpages erlang-eunit \
erlang-nox libicu-dev libmozjs185-dev libcurl4-openssl-dev wget
Step: 2. Installing CouchDB :
# cd /tmp
# wget http://mirror.fibergrid.in/apache/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz
# tar -xvf apache-couchdb-1.6.1.tar.gz
# rm -rf apache-couchdb-1.6.1.tar.gz
# cd apache-couchdb-1.6.1
# ./configure
# make && make install
Step: 3. Configuring CouchDB :
# adduser --disabled-login --disabled-password --no-create-home couchdb
# chown -Rf couchdb:couchdb /usr/local/var/lib/couchdb/
# chown -Rf couchdb:couchdb /usr/local/var/log/couchdb/
# chown -Rf couchdb:couchdb /usr/local/var/run/couchdb/
# ln -s /usr/local/etc/init.d/couchdb /etc/init.d/couchdb
# update-rc.d couchdb defaults
Step: 4. Give HTTP Access To CouchDB :
# vi /usr/local/etc/couchdb/local.ini
-- Uncomment & Modify Line No. 11 & 12 :
[httpd]
port = 5984
bind_address = 0.0.0.0
-- Save & Quit (:wq)
Step: 5. Start CouchDB Service :
# service couchdb start
# service couchdb status
Step: 6. Verifing CouchDB :
# curl http://localhost:5984
Or
Open Web Browser & Type: http://10.100.97.37:5984
Step: 7. Access Couchdb Web Interface For Manage the Database :
http://10.100.97.37:5984/_utils/
-- Create Admin User :
-- By Default there is no admin user, you need to create one by just clicking on the bottom right
corner that says "Fix this". Once you click on that link you will prompted to enter admin user
and password.
-- Give Username & Password.
-- Click on "Create" Button.
Thanks For Visiting on My Blog, For More Tutorials Keep Visiting My Blog
Too cool!
ReplyDeleteI’m truly enjoying the design and layout of your blog of Nextgen Scholars AWS Cloud Training Institute at Pitampura . It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a designer to create your theme?
Excellent work!
check this fantastic post give your truly feedback www.nextgenscholars.com