在什么情况下,人们更喜欢使用Node.js在实际部署中仅作为服务器?
当一个人不想使用Node时.仅限js, node 的性能更好.js?Apache还是Nginx?
在什么情况下,人们更喜欢使用Node.js在实际部署中仅作为服务器?
当一个人不想使用Node时.仅限js, node 的性能更好.js?Apache还是Nginx?
有几个很好的理由可以将另一个Web服务器粘贴到 node 前面.js:
我要警告第二点,你可能应该通过CDN或Varnish这样的缓存服务器来提供静态文件.如果您正在这样做,那么源 node 是Node、Nginx还是Apache实际上并不重要.
Caveat with nginx specifically: if you're using websockets, make sure to use a recent version of nginx (>= 1.3.13), since it only just added support for upgrading a connection to use websockets.