文章

mac电脑设置hosts

浏览: 82评论: 0发布时间: 2026-03-03
sudo vi /etc/hosts
 

设置 192.168.1.100 api.myproject.com

5. 刷新 DNS 缓存(关键)

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder