简体   繁体   English

为什么我的网站在域上运行速度慢,在localhost上运行速度快?

[英]Why is my website slow on the domain and fast on localhost?

I'm using WAMP on Windows 8 to serve a website, and the website is very fast on localhost, but very slow on my public domain address. 我在Windows 8上使用WAMP来服务一个网站,而且本地网站上的网站速度非常快,但我的公共域名地址非常慢。 Why is that? 这是为什么? My internet speed should be fine, its around 80 Mbps down and 10 Mbps up. 我的网速应该很好,大约80 Mbps下降,10 Mbps上行。 My IP hasn't changed for months, so I'm not using any dynamic DNS service. 我的IP几个月没有变化,所以我没有使用任何动态DNS服务。 I have i7 3.5ghz with 8gb ram, which shouldn't cause the problem. 我有i7 3.5ghz与8gb ram,这不应该导致问题。 I am using owncloud, which loads up painfully slow on the internet, but lightning fast on localhost. 我正在使用owncloud,它在互联网上加载缓慢,但在localhost上快速闪电。

Because accessing by domain should pass through DNS Server to translate domain name to IP address. 因为通过域访问应通过DNS服务器将域名转换为IP地址。 So it costs more time than localhost. 所以它比localhost花费更多的时间。

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

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