Friday, April 26, 2024

如何修改macOS系統hosts文件

修改蘋果(Apple)電腦macOS系統hosts文件的方法:

啟動root帳戶,打開終端,輸入:

sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts

然後根據提示輸入root密碼,就可以用文本編輯來修改hosts了。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.