Running sites on “localhost” is extremely slow

后端 未结 18 1644
终归单人心
终归单人心 2020-12-12 22:06

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 testi

18条回答
  •  眼角桃花
    2020-12-12 22:14

    For people using a mac. When you're using different host names say test.local and test2.local. Try changing test.local to test.dev. I found out that Mac OS X lion controls the .local tld. So when you change it to something else it's faster.

    And of course use above suggestions like turning off the ipv6 reference in your hosts file:
    #::1 localhost

    and setting this in the hosts file: 127.0.0.1 localhost

    so it points to ipv4.

提交回复
热议问题