This section shows you how to introduce CouchDB in windows just as Linux frameworks.
Introducing CouchDB in Windows
Download CouchDB
The authority site for CouchDB is https://couchdb.apache.org. On the off chance that you click the given connection, you can get the landing page of the CouchDB official site as demonstrated underneath.
In the event that you click on the download button that will prompt a page where download connections of CouchDB in different arrangements are given. The accompanying depiction represents the equivalent.
Pick the download connect for windows frameworks and select one of the gave mirrors to begin your download.
Introducing CouchDB
CouchDB will be downloaded to your framework as arrangement record named arrangement couchdb-1.6.1_R16B02.exe. Run the arrangement document and continue with the establishment.
After establishment, open underlying web interface of CouchDB by visiting the accompanying connection: http://127.0.0.1:5984/. In the case of everything goes fine, this will give you a page, which have the accompanying yield.
{
"couchdb":"Welcome","uuid":"c8d48ac61bb497f4692b346e0f400d60",
"version":"1.6.1",
"vendor":{
"version":"1.6.1","name":"The Apache Software Foundation"
}
}
You can associate with the CouchDB web interface by utilizing the accompanying url −
http://127.0.0.1:5984/_utils/
This shows you the file page of Futon, which is the web interface of CouchDB.
Introducing CouchDB in Linux Systems
For a significant number of the Linux enhanced frameworks, they give CouchDB inside. To introduce this CouchDB adhere to the directions.
On Ubuntu and Debian you can utilize −
sudo aptitude install couchdb
On Gentoo Linux there is a CouchDB ebuild accessible −
sudo emerge couchdb
On the off chance that your Linux framework doesn't have CouchDB, follow the following area to introduce CouchDB and its conditions.
Introducing CouchDB Dependencies
Following is the rundown of conditions that are to be introduced to get CouchDB in your system−
- Erlang OTP
- ICU
- OpenSSL
- Mozilla SpiderMonkey
- GNU Make
- GNU Compiler Collection
- libcurl
- help2man
- Python for docs
- Python Sphinx
To introduce these conditions, type the accompanying orders in the terminal. Here we are utilizing Centos 6.5 and the accompanying orders will introduce the necessary programming projects viable to Centos 6.5.
$sudo yum install autoconf
$sudo yum install autoconf-archive
$sudo yum install automake
$sudo yum install curl-devel
$sudo yum install erlang-asn1
$sudo yum install erlang-erts
$sudo yum install erlang-eunit
$sudo yum install erlang-os_mon
$sudo yum install erlang-xmerl
$sudo yum install help2man
$sudo yum install js-devel
$sudo yum install libicu-devel
$sudo yum install libtool
$sudo yum install perl-Test-Harness
Note − For all these orders you require to utilize sudo. The accompanying system changes a typical client over to a sudoer.
- Login as root in administrator client
- Open sudo record utilizing the accompanying order −
visudo
At that point alter as demonstrated beneath to give your current client the sudoer advantages −
Hadoop All=(All) All , and press esc : x to write the changes to the file.
In the wake of downloading all the conditions in your framework, download CouchDB adhering to the given directions.
Downloading CouchDB
Apache programming establishment won't give the total .tar record for CouchDB, so you need to introduce it from the source.
Make another registry to introduce CouchDB, peruse to such made catalog and download CouchDB source by executing the accompanying orders −
$ cd
$ mkdir CouchDB
$ cd CouchDB/
$ wget
http://www.google.com/url?q=http%3A%2F%2Fwww.apache.org%2Fdist%2Fcouchdb%2Fsource%2F1.6.1%2Fapache-couchdb-1.6.1.tar.gz
This will download CouchDB source record into your framework. Presently unfasten the apache-couchdb-1.6.1.tar.gz as demonstrated beneath.
$ tar zxvf apache-couchdb-1.6.1.tar.gz
Designing CouchDB
To design CouchDB, do the accompanying −
- Peruse to the home organizer of CouchDB.
- Login as superuser.
- Arrange utilizing ./design fast as demonstrated beneath −
$ cd apache-couchdb-1.6.1
$ su
Password:
# ./configure --with-erlang=/usr/lib64/erlang/usr/include/
It gives you the accompanying yield like that appeared underneath with a closing line saying − You have designed Apache CouchDB, time to unwind.
# ./configure --with-erlang=/usr/lib64/erlang/usr/include/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
………………………………………………………..
……………………….
config.status: creating var/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: creating src/snappy/google-snappy/config.h
config.status: src/snappy/google-snappy/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
You have configured Apache CouchDB, time to relax.
Run `make && sudo make install' to install.
Introducing CouchDB
Presently type the accompanying order to introduce CouchDB in your framework.
# make && sudo make install
It introduces CouchDB in your framework with a closing line saying − You have introduced Apache CouchDB, time to unwind.
Beginning CouchDB
To begin CouchDB, peruse to the CouchDB home envelope and utilize the accompanying order −
$ cd apache-couchdb-1.6.1
$ cd etc
$ couchdb start
It begins CouchDB giving the accompanying yield: −
Apache CouchDB 1.6.1 (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.
[info] [lt;0.31.0gt;] Apache CouchDB has started on http://127.0.0.1:5984/
[info] [lt;0.112.0gt;] 127.0.0.1 - - GET / 200
[info] [lt;0.112.0gt;] 127.0.0.1 - - GET /favicon.ico 200
Confirmation
Since CouchDB is a web interface, attempt to type the accompanying landing page url in the program.
http://127.0.0.1:5984/
It creates the accompanying yield −
{
"couchdb":"Welcome",
"uuid":"8f0d59acd0e179f5e9f0075fa1f5e804",
"version":"1.6.1",
"vendor":{
"name":"The Apache Software Foundation",
"version":"1.6.1"
}
}
