LoginSignup
0
0

More than 5 years have passed since last update.

毎度検索するhostsファイルの場所【Win・Mac・Linux】

Last updated at Posted at 2018-12-22

毎度忘れた頃に開発等で必要になるhostsファイルの変更と設定。
おなじみのネタですが、(自分に対して)いい加減覚えろ、ということで備忘録として残しておきます。

Windows 10

7, 8 / 8.1等も同じはず。

C:\Windows\System32\drivers\etc\hosts

Macintosh

High Sierraで確認。
/etc/host としてシンボリックリンクが貼られているので、/etc/hosts でも編集可能

/private/etc/hosts

DNSキャッシュの削除

$ sudo killall -HUP mDNSResponder

Linux

/etc/hosts

ブラウザで反映させる方法

こちらが参考になります。
hostsファイルの変更をブラウザで即反映させる方法

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0