简单的说:在终端输入:sudo scutil --set HostName localhost 转载于:https://www.cnblogs.com/thankyouGod/p/7039552.html