刚入手Mac,发现Mac下使用idea进行调试极其慢,然后发现和本地回环地址有关:
只需稍微修改hosts文件即可:
sudo vim /etc/hosts,在localhost后面追加你的电脑名.local即可
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost miaoying-MacBookPro.local
255.255.255.255 broadcasthost
:: localhost
~