I am new to CouchDB and want to work on a project using CouchDB. I set up the server on my laptop (running Ubuntu 13.04) by following the instructions in the Getting Started CouchDB manual, but with a slight change in the version of CouchDB (the explanation in the manual was older). I downloaded the latest version of the original version of CouchDB and followed the rest of the steps in this book using the terminal. I can successfully start the server from the terminal, but when I use
$ curl http://127.0.0.1:5984/
I get it
curl: (7) Failed connect to 127.0.0.1:5984; Connection refused
as output instead
{"couchdb" : "Welcome", "version" : "1.3.1",}
I configured the server as follows:
First, I downloaded the source file from the official site, extracted it and copied it to my / home directory, and then performed the following actions in the terminal
$ cd apache-couchdb-1.3.1/ $ ./configure $ make $ sudo make install $ sudo mkdir -p /usr/local/var/lib/couchdb $ sudo mkdir -p /usr/local/var/log/couchdb $ sudo mkdir -p /usr/local/var/run $ sudo chown -R couchdb /usr/local/var/lib/couchdb $ sudo chown -R couchdb /usr/local/var/log/couchdb $ sudo chown -R couchdb /usr/local/var/run $ sudo cp /usr/local/etc/init.d/couchdb /etc/init.d $ sudo update-rc.d couchdb defaults
Starting and viewing a production server
$ sudo /etc/init.d/couchdb start $ curl http://127.0.0.1:5984
When I enter this command to start the sudo / etc / init.d / couchdb start server, I get a response in the terminal as follows:
* Starting database server couchdb [ OK ]
I even tried to disable the system firewall, but then the results will be the same. If any of you have experienced the same thing, share your experience in solving this problem or let me know an alternative way to configure.
thanks