Basic CouchDB Local-Remote Replication

I play with CouchDB replication, and I am wondering how to copy a local database named "myDatabase" to a remote database at www.mySite.com, which requires ssh access and rename it to "myRemoteDatabase". How to do it?

I can log in to the local and remote server and run:

curl -X GET http://localhost:5984/

... and it will show me the result, but when I am on my local computer and I run:

curl -X GET http://my.ip.address:5984/

... or even

curl -X GET http://USER:PASSWORD@my.ip.address:5984/

I get:

curl: (7) couldn't connect to host

What am I missing in this picture?

+3
source share
2 answers

Given the data you provide, this can only be one.

CouchDB . CouchDB, 127.0.0.1 ( IPv6) ::1. , . , .

, , , , 5984. . , .

+4
sudo vi /etc/couchdb/default.ini

[httpd]

bind_address = 127.0.0.1

IP- , :

sudo service couchdb restart
+1

Source: https://habr.com/ru/post/1726116/


All Articles