簡體   English   中英

用node.js和apache搭建的服務器是一樣的嗎

[英]Is the server built with node.js and the apache the same

我是編程新手,我的問題是使用 node.js 和 express.js 構建的服務器與本地 web 服務器(如 xampp(apache 或 nginx))之間有什么區別您可以使用 node.js 中的 HTTP 模塊自行構建服務器嗎?

Apache 和 Nginx 是您主要用作負載平衡器的 http 服務器。 這意味着您的 Apache/Nginx 服務器接收到請求並將其傳遞給 nodejs express 服務器。

優點

  • 增加可擴展性
  • 冗余
  • 減少停機時間,提高性能
  • 有效管理故障
  • 增加靈活性

閱讀更多: https://www.nginx.com/resources/glossary/load-balancing/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM