Use MacOS to update the Host file (without password) to open the Finder, and then click go to -- go to the folder (or press the shortcut key Shift + Command + G) in the menu bar, www.2cto.com
Enter/private/etc in the path, right-click the etc folder and choose show introduction. In the folder introduction window, find share and permission ", change the permission of everyone to "read and write". If you find that the permission cannot be modified, unlock the lock in the lower right corner and modify it. after modifying the permissions of the etc folder, go to the etc folder and modify the permission for the hosts file (also everyone reading and writing). After the modification, you can right-click the hosts file, open and edit the file through text editing. After modifying and saving the file, remember to restore the permissions of the file and the etc folder.