How can I eliminate slow resolving/loading of localhost/virtualhost (a 2-3 second lag) on Mac OS X Lion?

前端 未结 13 901
梦毁少年i
梦毁少年i 2020-12-04 06:00

Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow

13条回答
  •  难免孤独
    2020-12-04 06:37

    Make sure to put the IP v6 entries not in the line with localhost

    ::1 localhost
    

    the IP v6 entries go in a separate line

    fe80::1%lo0 here and_here
    

    It is sometimes really fast now, but there are rare exceptions where the old lags come back. They might however be based on other reasons.

提交回复
热议问题