本文介绍了Raven 数据库复制设置问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能帮我设置 Raven DB 复制?尝试了很多方法很多时间但没有成功.

Can any one help me in setting up Raven DB Replication? Tried a lot ofways a lot of time but no success.

故事是这样的:

1) 我下载了 raven 包.复制一份.跑步来自两个文件夹的 Raven.Server.Exe.两个实例都运行在单个端口上成功.然后我创建了一个带有名称的文档作为Raven/复制/目的地"和文档为

1) I downloaded the raven bundle. Make a copy of it. RunRaven.Server.Exe from both of the folders. Both instances runsuccessfully on individual port. Then I created a document with nameas "Raven/Replication/Destinations" and document as

{"目的地": [{"Url":"http://vishal-pc:8081"}],"Id": "Raven/复制/目的地"}

{ "Destinations": [{"Url":"http://vishal-pc:8081"}], "Id": "Raven/Replication/Destinations"}

但它不起作用.请有人放一些灯 不 我怎么办设置复制.

But it's not working. Please some one put some light no How can Isetup replication.

我还想在这里提到的一件事是,我能够运行通过从样本运行start raven.ps1"进行复制/Raven.Sample.Replication 来自 bundle.Both 实例已经有如下所示的 Raven/Replication/Destinations"文档(没有 url目标节点):{"目的地": [],"Id": "Raven/复制/目的地"}

One more thing I want to mention here is, I was able to run thereplication by running "start raven.ps1" from samples/Raven.Sample.Replication from bundle.Both instances are already hasthe Raven/Replication/Destinations" document like below (no url indestination node):{ "Destinations": [], "Id": "Raven/Replication/Destinations"}

然后我用另一个实例的 url 更新了一个实例.后更新文件如下:{"目的地": ["网址":"http://vishal-pc:8081"],"Id": "Raven/复制/目的地"}

Then I updated one instance with url of another instance. Afterupdating document was like below:{ "Destinations": ["Url":"http://vishal-pc:8081"], "Id": "Raven/Replication/Destinations"}

复制效果非常好.

我无法弄清楚这里有什么区别.为什么不是能够复制当我分别运行两个实例时,为什么会这样运行start raven.ps1"即可正常工作.

I am not able to figure out what is the difference here. Why It's notable to replication When I run two instances separately and why it isworking fine by running "start raven.ps1".

请有人在这里点亮一些灯.

Please please please some one put some light here.

注意:我正在使用 Web 界面对文档进行更改.

Note : I am using web interface to make changes in document.

谢谢维沙尔

推荐答案

查看您正在执行的 Raven.Server.exe 文件所在的文件夹.确保您有一个名为 Plugins 的子目录,并且它包含复制包 DLL.

Look in the folder of the Raven.Server.exe file you are executing. Make sure you have a subdirectory called Plugins and that it contains the replication bundle DLL.

这篇博文很好地引导您完成该过程.

This blog post walks you through that process pretty well.

这篇关于Raven 数据库复制设置问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 23:53