简体   繁体   English

文件服务器 vs Web 服务器

[英]File server vs Web server

there are both web servers and file servers有 web 服务器和文件服务器
why is that so?为什么呢?
Can we not just store the file on the web server,我们能不能只将文件存储在 web 服务器上,
Why is the need for a separate file server?为什么需要单独的文件服务器?
Is there any advantage in maintaining a dedicated file server?维护专用文件服务器有什么好处吗?

For smaller traffic, sure, you can keep everything on the same server.当然,对于较小的流量,您可以将所有内容保存在同一台服务器上。 But as you expand, they have a different requirement, web servers for dynamic webpage require some amount of CPU per user activity but relatively small storage, while file servers usually don't do much CPU-wise, but require far larger storage.但是随着您的扩展,它们有不同的要求,用于动态网页的 web 服务器每个用户活动需要一定数量的 CPU,但存储空间相对较小,而文件服务器通常不会在 CPU 方面做太多,但需要更大的存储空间。 Unless you self-host, you can also use different subscriptions that are more optimized for each use case.除非您自行托管,否则您还可以使用针对每个用例进行了更优化的不同订阅。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM