Dja*_*cks 1 couchdb database-replication
我最近开始玩CouchDB,只是涉及一些小问题.
我正在尝试使用以下命令将数据从aremote服务器复制到我的远程计算机:
curl -X POST -d '{"source":"http://xxx.xxx.xx.xxx:5984/testing_replicate","target":"http://localhost:5984:testing_replicate"}' http://localhost:5984/_replicate
Run Code Online (Sandbox Code Playgroud)
不知怎的,这个命令没有响应.
做
和curl -X GET http://localhost:5984/
curl -X GET http://xxx.xxx.xx.xxx:5984/
Run Code Online (Sandbox Code Playgroud)
返回预期的响应: {"couchdb":"Welcome","version":"0.10.0"}
任何人都可以开导我吗?
最好的祝福.
你的目标网址有一个蠢货.更改:
... "target":"http://localhost:5984:testing_replicate" ...
^
Run Code Online (Sandbox Code Playgroud)
至
... "target":"http://localhost:5984/testing_replicate" ...
^
Run Code Online (Sandbox Code Playgroud)