Created
July 24, 2009 22:50
-
-
Save tc/154594 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -vX GET http://127.0.0.1:5984 | |
* About to connect() to 127.0.0.1 port 5984 (#0) | |
* Trying 127.0.0.1... Connection refused | |
* couldn't connect to host | |
* Closing connection #0 | |
curl: (7) couldn't connect to host | |
$ ps aux | grep beam | |
root 4080 0.0 0.5 28560 8956 ? Sl Jul22 0:05 /usr/lib/erlang/erts-5.6.3/bin/beam -Bd -K true -- -root /usr/lib/erlang -progname erl -- -home /home/deploy -noshell -noinput -smp auto -sasl errlog_type error -pa /usr/local/lib/couchdb/erlang/lib/couch-0.9.0a/ebin /usr/local/lib/couchdb/erlang/lib/mochiweb-r97/ebin /usr/local/lib/couchdb/erlang/lib/ibrowse-1.4.1/ebin -eval application:load(ibrowse) -eval application:load(crypto) -eval application:load(couch) -eval crypto:start() -eval ibrowse:start() -eval couch_server:start([ "/usr/local/etc/couchdb/default.ini", "/usr/local/etc/couchdb/local.ini"]), receive done -> done end. | |
deploy 8248 0.0 0.0 3300 740 pts/0 R+ 21:44 0:00 grep beam | |
$ sudo killall beam | |
$ sudo couchdb | |
Apache CouchDB 0.9.0a (LogLevel=info) is starting. | |
Apache CouchDB has started. Time to relax. | |
[1]+ Stopped sudo couchdb | |
$ bg | |
[1]+ sudo couchdb & | |
$ curl -vX GET http://127.0.0.1:5984 | |
* About to connect() to 127.0.0.1 port 5984 (#0) | |
* Trying 127.0.0.1... connected | |
* Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0) | |
[info] [<0.56.0>] 127.0.0.1 - - 'GET' / 200 | |
> GET / HTTP/1.1 | |
> User-Agent: curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 | |
> Host: 127.0.0.1:5984 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< Server: CouchDB/0.9.0a (Erlang OTP/R12B) | |
< Date: Thu, 23 Jul 2009 21:45:37 GMT | |
< Content-Type: text/plain;charset=utf-8 | |
< Content-Length: 41 | |
< Cache-Control: must-revalidate | |
< | |
{"couchdb":"Welcome","version":"0.9.0a"} | |
* Connection #0 to host 127.0.0.1 left intact | |
* Closing connection #0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment