How to edit hosts…

Apple OSX 10.4.X Tiger

  1. Open Terminal (Click Spotlight, or press Command+Space. Now type terminal.)
  2. In Terminal type, ‘sudo pico /etc/hosts‘, press Enter.
  3. Insert your Ecenica Hosting web site’s IP and domain name. For example: 100.100.100.100 example.com.
  4. Press Ctrl+X, then Y to save.
  5. Type ’sudo niload -v -m hosts . < /etc/hosts', press Enter
  6. Type ‘lookupd -flushcache’, press Enter.
Tip: To save having to retype  sudo pico /etc/hosts, when terminal opens, press the ‘up’ cursor key to scroll through the last actions.

Microsoft Windows 7

  1. Click Start -> All Programs -> Accessories.
  2. Right click “Notepad” and select “Run as administrator”
  3. Click Yes on the UAC prompt.
  4. Click File -> Open.
  5. Change the file filter drop down box from “Text Documents (*.txt)” to “All Files (*.*)”.
  6. Browse to “C:\Windows\System32\Drivers\etc”.
  7. Select “hosts” and click “Open”.
  8. Insert your Ecenica Hosting web servers IP and domain name. For example: 100.100.100.100 example.com.
  9. Close Notepad. Click Save when prompted.

你可能感兴趣的:(How to edit hosts…)