希望在 MacOs 中修改主机文件
Looking to modify host file in MacOs
我正在关注 tutorial on multi-tenancy in Django (10:58/11:42) and I would like to modify the hosts file which I located alreadty. When I try to add a single letter, I get rejected:
但这让我很困惑,这是我的笔记本电脑,我没有权限?有什么不同的方法吗?
在终端中键入 sudo nano /etc/hosts
,然后点击 return。
输入您的管理员密码,然后点击 return。
然后你应该可以编辑文件了。
我正在关注 tutorial on multi-tenancy in Django (10:58/11:42) and I would like to modify the hosts file which I located alreadty. When I try to add a single letter, I get rejected:
在终端中键入 sudo nano /etc/hosts
,然后点击 return。
输入您的管理员密码,然后点击 return。
然后你应该可以编辑文件了。