LoginSignup
1
2

More than 5 years have passed since last update.

[Linux/Windows/Mac] hostsに設定を追加する

Posted at

hostsの変更手順メモ

変更例

IPのあとにホスト名を記載する

127.0.0.1       localhost

Windows

Windows7

以下を管理者権限のあるエディタで修正

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

Linux

root権限をつけて以下を編集

/etc/hosts

Mac

sudo で以下のいずれかを編集(/private/etc/hosts/etc/hostsのリンク)

/private/etc/hosts
/etc/hosts

Macでhostsファイルを変更・反映 - Qiita

1
2
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
1
2