Skip to content

Instantly share code, notes, and snippets.

@rdmpage
Created September 4, 2012 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdmpage/3619607 to your computer and use it in GitHub Desktop.
Save rdmpage/3619607 to your computer and use it in GitHub Desktop.
Replicate CouchDB
To ensure local CouchDB database is externally accessible first go to the configuration page
http://localhost:5984/_utils/config.html
and change bind_address (httpd section) from 127.0.0.1 to 0.0.0.0 then restart
CouchDB.
To confirm, use command
lsof -i -n -P | grep LISTEN
in Terminal. If you see something like this:
beam.smp 15257 rpage 9u IPv4 0x1cca7aec 0t0 TCP *:5984 (LISTEN)
then CouchDB is accessible. If, however, you see this:
beam.smp 16999 rpage 9u IPv4 0x0d65b304 0t0 TCP 127.0.0.1:5984 (LISTEN)
then only accessible from localhost. See http://serverfault.com/questions/79453/why-cant-i-access-my-couchdb-instance-externally-on-ubuntu-9-04-server for background.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment