同步托管在不同Web服务器上的两个域的目录 [英] Synchronize directory of two domains hosted on different web servers

查看:69
本文介绍了同步托管在不同Web服务器上的两个域的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试开发一个应用程序来同步托管在不同服务器上的两个活动域的两个目录,但我没有得到实现的逻辑。

我已经尝试过在localhost上使用tcp客户端服务器在不同端口上使用不同的应用程序,但是当我试图编写网络流远程主机服务器崩溃时它无法正常工作。



请帮助我...

Hi,

I am trying to develop an application to synchronize two directories of the two live domains hosted over different servers but i am not getting the logic to implement.
I have tried it to do with tcp client server on localhost using different applications on different ports, but its not working properly, whenever i tried to write network stream remote host server crashed.

Kindly please help me ...

推荐答案

你好,



您需要查看''FTP''。



我们浏览的传统网站基于''HTTP''用于查看文字,图像等,但不用于文件传输。 ''FTP''的设计考虑到了这一点,如果你可以使用FTP访问你的服务器,你应该能够完成你想要实现的大部分操作。



FtpWebRequest Class [ ^ ]

此类是一个包装器内置于C#的FTP。它应该对你有所帮助。如果它不是,那么,试试代码FTP命令并尝试使用它们。



希望这会有所帮助,问候
Hi there,

You need to look into ''FTP''.

The conventional web we browse is based on ''HTTP'' is designed for viewing text, images, etc. but not for file transfer. ''FTP'' is designed this in mind and if you can access your server using FTP you should be able to do most of the operations that you are trying to achieve.

FtpWebRequest Class[^]
This class is a wrapper for FTP which is built-in to C#. It should help you. If it doesn''t, well, try the code FTP commands and try playing around with them.

Hope this helps, Regards


这篇关于同步托管在不同Web服务器上的两个域的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆