How to Edit Ubuntu's etc Hosts File by Example

preview_player
Показать описание
Here's just a quick 'edit the Ubuntu hosts file' example which shows you how to add your domain name and ping it locally. This is a useful step for when you're testing software locally and need to pretend your local machine has the same domain name as your production system. In this edit Ubuntu etc hosts file example we use the Nano text editor to keep things simple. Feel free to use whichever text editor works best for you.

tl;dr

Рекомендации по теме
Комментарии
Автор

Why does one of the IP addresses in the Ubuntu etc hosts file use 127.0.1.1 instead of 127.0.0.1?

calliejones
Автор

Awesome !!! It works for me.... Thanks :D

biplob
Автор

I can open the file but it wont allow me to write anything to it.

paulferris