Ubuntu安装CouchDB

官网上有针对ubuntu的教程:

http://couchdb.apache.org/

最终位置:
https://launchpad.net/~couchdb/+archive/stable

最终的命令

sudo apt-get install python-software-properties -y
sudo add-apt-repository ppa:couchdb/stable -y
sudo apt-get update -y
# remove any existing couchdb binaries
sudo apt-get remove couchdb couchdb-bin couchdb-common -yf
# see my shiny 1.5.0 goodness
sudo apt-get install -V couchdb
  Reading package lists...
  Done Building dependency tree
  Reading state information...
  Done
  The following extra packages will be installed:
  couchdb-bin (1.5.0-0ubuntu2) couchdb-common (1.5.0-0ubuntu2) couchdb (1.5.0-0ubuntu2)
 … Y …

# manage via upstart
sudo stop couchdb
  couchdb stop/waiting
sudo start couchdb
  couchdb start/running, process 3541
使用如下命令测试
cyper@cyper-pc:~$ curl http://localhost:5984
{"couchdb":"Welcome","uuid":"23641c883ca89950c40f9057c5e86320","version":"1.5.0","vendor":{"version":"12.04","name":"Ubuntu"}}
cyper@cyper-pc:~$ curl -i http://localhost:5984
HTTP/1.1 200 OK
Server: CouchDB/1.5.0 (Erlang OTP/R14B04)
Date: Wed, 23 Apr 2014 16:54:44 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 127
Cache-Control: must-revalidate

{"couchdb":"Welcome","uuid":"23641c883ca89950c40f9057c5e86320","version":"1.5.0","vendor":{"version":"12.04","name":"Ubuntu"}}
cyper@cyper-pc:~$

你已经看出来了,参数-i表示打印出Http Header。

你可能感兴趣的:(ubuntu,CouchDB)