【发布时间】:2017-06-27 08:51:16
【问题描述】:
我有两台机器,比如说 156 和 157 我在 156 机器上有一个数据库,我想复制到 157 机器,因为我正在使用以下命令
curl -X POST -d '{"source":"http://couch_user:couch_password@XX.XX.XX.156:5984/root_openwhisk-156_whisks","target":"http://couch_user:couch_password@XX.XX.XX.157:5984/root_openwhisk-156_whisks"}' http://couch_user:couch_password@XX.XX.XX.156:5984/_replicate -H "Content-Type: application/json"
我也试过没有密码
curl -X POST -d '{"source":"http://XX.XX.XX.156:5984/root_openwhisk-156_whisks","target":"http://XX.XX.XX.157:5984/root_openwhisk-156_whisks"}' http://XX.XX.XX.156:5984/_replicate -H "Content-Type: application/json"
但我得到以下错误 {"error":"db_not_found","reason":"无法打开http://XX.XX.XX.156:5984/root_openwhisk-156_whisks/"}
我也尝试过蒲团中的复制器实用程序,但这也不起作用
在蒲团中,我可以在两台机器上看到 root_openwhisk-156_whisks 以及 _replicator 和 _user 请帮忙
【问题讨论】:
标签: couchdb replication database-replication