Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get exact couchdb version

Tags:

couchdb

I have a server running couchdb, and I would like to know what version I am running. I know it is 1.2.0, but I want to know 1.2.0-X. I have looked through some of the source files for this info, but I can't seem to find it. Is there any way I can find this information?

Thanks!

like image 364
Jimmy Pitts Avatar asked Oct 02 '13 23:10

Jimmy Pitts


People also ask

How do I know what version of CouchDB I have?

You can just query http://yourserver:5984/ which should return the result.

How do I know if CouchDB is running?

In case you want to check the status of CouchDB, you can do so using the following command: sudo status couchdb.

What is CouchDB query language?

CouchDB uses multiple formats and protocols to store, transfer, and process its data. It uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API. CouchDB was first released in 2005 and later became an Apache Software Foundation project in 2008.


1 Answers

You can just query http://yourserver:5984/ which should return the result.

Quoting from the API Docs

Request:

GET / HTTP/1.1
Accept: application/json
Host: localhost:5984

Response:

HTTP/1.1 200 OK
Cache-Control: must-revalidate
Content-Length: 179
Content-Type: application/json
Date: Sat, 10 Aug 2013 06:33:33 GMT
Server: CouchDB (Erlang/OTP)

{
    "couchdb": "Welcome",
    "uuid": "85fb71bf700c17267fef77535820e371",
    "vendor": {
        "name": "The Apache Software Foundation",
        "version": "1.3.1"
    },
    "version": "1.3.1"
}
like image 60
Stefan Kögl Avatar answered Sep 28 '22 06:09

Stefan Kögl