Thursday, December 5, 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.