简体   繁体   English

NodeJS网站在生产服务器上非常慢

[英]NodeJS Website very slow on production server

First of all, i'm sorry for my bad english. 首先,对不起我的英语不好。

I have a strange problem, i bought a dedicated server on "OVH". 我有一个奇怪的问题,我在“ OVH”上购买了专用服务器。 I install - Debian 7 stable - node and npm - apache2 我安装-Debian 7稳定版-节点和NPM-apache2

I put a node application ( on the port "9000" ) and a basic html page at the root : -var/www/ --------index.html --------nodeApp/ 我将节点应用程序(在端口“ 9000”上)放在根目录下,并将一个基本的html页面放在根目录下:-var / www / -------- index.html -------- nodeApp /

So, let's say my server have this adresse : 1.12.123.123 因此,假设我的服务器具有以下地址:1.12.123.123

When i trie to access to my server at home on : - "1.12.123.123" : i get index.html really fast. 当我尝试访问位于以下位置的服务器时:-“ 1.12.123.123”:我很快就得到了index.html。 - "1.12.123.123:9000" : i get my node app really fast. -“ 1.12.123.123:9000”:我的节点应用程序真的很快。

BUT, when i trie to access to my server at work on : - "1.12.123.123" : i get index.html really fast. 但是,当我尝试访问在以下位置工作的服务器时:-“ 1.12.123.123”:我获得index.html的速度非常快。 - "1.12.123.123:9000" : i can't access to the page of my node app. -“ 1.12.123.123:9000”:我无法访问我的节点应用程序的页面。

Do you have an idea of what is going on ? 您是否知道发生了什么?

Thx for your help. 谢谢您的帮助。

I found the issues. 我发现了问题。

I use virtualhost now, so i have only the port 80 open on my server. 我现在使用virtualhost,因此我在服务器上仅打开了端口80。 And everything work fine. 一切正常。

Check your firewall setting. 检查您的防火墙设置。 Port 9000 might be blocked by your firewall. 防火墙可能阻止了端口9000。

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

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