Mac hosts file configuration

 

Description: Working inside sometimes encounter in the office network environment, and the need for IP addresses to be configured into the hosts file, but not long because I use a Mac computer, the basic state is white, so record it after use.

 

1, Windows configuration hosts

Windows open the folder directly inside, you can find the system / etc / hosts, IP and domain name written in it. Save on OK

 

2, Mac configuration hosts

The first step: the top left or top right corner of the Mac Search icon, enter "ter ...." After opening the automatically retrieved - terminal equipment.

Step two: enter the command line mode on the Mac

The third step: enter: sudo vi / etc / hosts, then you will be prompted to enter the password password :, then this Mac devices themselves. After the completion into the hosts file configuration display pages.

Step Four: Hold down the shift key + i, enter edit mode, and then enter their own IP and domain name to be configured.

Step Five: Press the ESC key on the keyboard, then type:: wq. (Colon plus wq) is the Save Changes

Step Six: been normal use friends ~

Guess you like

Origin www.cnblogs.com/QiKa/p/11284740.html