剛入手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 ::1 localhost ~