Skip to main content

One post tagged with "shell"

View All Tags

210113

sudo: unable to resolve host ์—๋Ÿฌ ํ•ด๊ฒฐ#

์ƒํ™ฉ#

  • sudo ๋ช…๋ น์–ด๊ฐ€ ํ•„์š”ํ•œ ์ƒํ™ฉ์—์„œ sudo: unable to resolve host๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ์ƒํ™ฉ

  • hostname๊ณผ hosts์˜ ์ •๋ณด๊ฐ€ ๋‹ฌ๋ผ์„œ ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ

ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•#

  • sudo vi /etc/hosts

    2021-04-05-210113-image-0

  • 127.0.0.1 localhost ๋’ค์— 127.0.1.1 ip-{hostname} ๋ฅผ ์ถ”๊ฐ€

    2021-04-05-210113-image-1