在“本地主机”上运行网站是非常缓慢的

编程入门 行业动态 更新时间:2024-10-27 20:31:25
本文介绍了在“本地主机”上运行网站是非常缓慢的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 使用我的本地主机测试网站有真正的麻烦。它运行速度非常慢!有时需要花费一分钟来加载一个页面。我正在使用Firefox,我正在测试的网站在我办公室的本地机器/生产服务器上的其他开发人员上运行良好。

事情: $ b

  • 禁用IPv6
  • 未在调试模式下运行
  • 将站点放置在IIS 6上最高的应用程序池(高隔离度)中。
  • 取得防火墙等。

    这个问题似乎只发生在代码隐藏中包含某些代码形式的页面时。

    请注意,一个模糊的主题/刺在黑暗中的一点点,但将不胜感激任何形式的建议 - 这是可怕的等待一分钟刷新每一次尝试一个改变!

    干杯, Sean。

    解决方案

    我对PHP有同样的问题。我解决了这个问题,通过在数据库连接参数中将localhost更改为127.0.0.1,就像这里提供的一样: serverfault / a / 444338/62739 。我认为这可能也适用于您,请试一试。

    Having real trouble using my localhost to test sites. It runs extremely slowly! Sometimes it takes up to a minute to load a page. I'm using Firefox and the sites I'm testing run fine on other developers in my office's local machines / on the production server.

    I've gone through the normal things :-

  • Disabled IPv6
  • Not running in debug mode
  • Put the site in the highest app pool (High Isolated) on IIS 6.
  • Taking of firewalls etc.
  • The problem only seems to occur when hitting pages which contain some form of code in the code-behind.

    Appreciate that this a little bit of a vague topic / stab in the dark but would appreciate any sort of advice - it's horrible waiting a minute each refresh to try out a change!

    Cheers, Sean.

    解决方案

    I had the same problem with PHP. I solved it by changing "localhost" to "127.0.0.1" in database connection parameters like someone suggested here: serverfault/a/444338/62739 . I think it may work for you too, give it a try.

    更多推荐

    在“本地主机”上运行网站是非常缓慢的

    本文发布于:2023-11-16 23:44:38,感谢您对本站的认可!
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:缓慢   主机   网站

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!