本地网络上 ftp 的替代方案

发布于 2024-10-18 11:46:14 字数 139 浏览 5 评论 0原文

您好,我有一个可处理 pdf 文件的文档管理程序,这些文件(近 150000 个文件)存储在 ftp 服务器(solaris 10)上。该程序在本地网络上运行。
我需要一种更快、更安全的 ftp 替代方案。
我的程序是用delphi 2010编写的

Hi I have a document managment program that works with pdf files and these files (nearly 150000 files) are stored on ftp server(solaris 10). the program works on local network.
I need an alternative to ftp that is faster and more secure.
My program is written in delphi 2010

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

合久必婚 2024-10-25 11:46:14

FTP 几乎是您所能达到的最快速度。

安全和加密总是让你的速度低于现在。

替代方案很大程度上取决于您想要什么,因此您可能需要在以下之间进行考虑:

  • 对于下载:HTTP/HTTPS 易于安全、快速、易于路由/代理
  • 对于上传:WebDAV 基于 HTTP/HTTPS
  • 对于一般加密:SSH基于通信(任何协议都可以通过它进行路由)会产生开销
  • 对于同步:rsync 可以高度优化传输(它会删除已经同步的内容)

根据您的需求,甚至可以有更多选项可供选择。让您的问题更具体,我们可以放大选项。

根据我的经验,为了提高速度,网络协议并不是唯一的因素。

我通过以下方法将速度提高了几个数量级:

  • 使用交换机而不是集线器(尤其是在 100mbit 上!)
  • 使用千兆位而不是 100mbit 网络
  • 使用磁盘阵列(多轴)而不是单个磁盘
  • 使用 SSD 而不是 HDD

--jeroen

FTP is about as fast as you can get.

Security and encryption always make your speed less than it is now.

Alternatives highly depend on what you want, so you might want to consider between these:

  • For download: HTTP/HTTPS is easy to secure, fast, easy to route/proxy
  • For upload: WebDAV is based on HTTP/HTTPS
  • For general encryption: SSH based communication (any protocol can be routed over it) incurs overhead
  • For syncing: rsync which highly optimizes transfers (it strips things already synced)

Depending on your needs there can even be more options to choose from. Make your question more specific, and we can zoom in on the options.

In my experience, for gaining speed, the network protocol is not the only factor.

I have speed up things orders of magnitude by:

  • using switches instead of hubs (especially on 100mbit!)
  • using a gigabit instead of 100mbit network
  • using disk arrays (multiple spindles) instead of single disks
  • using SSD instead of HDD

--jeroen

毁梦 2024-10-25 11:46:14

您可以比 FTP 更安全,但在本地网络上可能不值得这么麻烦。 FTP 的弱点是它的明文密码交换和未加密的文件传输。如果您仅在本地网络上使用它,则它仅容易受到本地网络上窃听者的攻击!用 SWITCH 替换你的 HUB,你就安全了(是的,我知道你不再有 HUB)。

寻找比 FTP 更快的解决方案也将是一个挑战。 FTP 通过网络发送文件时几乎没有每个文件的开销,并且计算量很小(因为它是普通传输,磁盘上的内容会通过网络原封不动地发送)。如果您需要更快的解决方案,您可能需要提供有关问题特殊性的更多详细信息。更快的解决方案不会成为通用解决方案(如 FTP、HTTP、SCP 等)。

在我看来,如果您有一个可用的 FTP 解决方案,并且它仅在本地网络上使用,请保留它;为什么要改变没有损坏的东西?本地网络上甚至还有更简单的 TFTP(简单 FTP)协议,例如我正在使用 TFTP 来启动和配置 VoIP 电话。

You can get more secure then FTP, but on a local network it might not be worth the trouble. FTP's weakness is it's clear text password exchange and unencrypted file transfer. If you're only using it on the local network, it's only vulnerable to people eavesdropping on the local network ! Replace your HUB's with SWITCH'es and you're safe (yes, I know you no longer have HUB's).

Finding a solution that's faster that FTP is also going to be a challenge. FTP has practically no per-file overhead for sending the file over the wire, and it's computationally trivial (because it's a plain transfer, what you have on disk is sent over the wire unchanged). If you need a faster solution you might need to give more details about the particularities of your problem. The faster solution is not going to be a general purpose solution (like FTP, HTTP, SCP are).

In my opinion, if you have a working solution with FTP, and it's only used on the local network, keep it; Why change something that ain't broken? There's a place for even the simpler TFTP (Trivial FTP) protocol on the local network, for example I'm using TFTP to boot up and configure VoIP phones.

路弥 2024-10-25 11:46:14

安全复制文件... scp 浮现在我的脑海中。

请随意 man scp 或在此处阅读它的手册页 http://linux .die.net/man/1/scp

另一种替代方法是,根据文件的大小,将它们作为 blob 或 clob 存储在数据库中。

Secure copying of files... scp comes to mind.

Feel free to man scp or read it's man page here http://linux.die.net/man/1/scp

Another alternative would be, depending on the size of the files, to store them as blobs or clobs in a database.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文