๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ

210113

ยท ์•ฝ 1๋ถ„

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

์ƒํ™ฉ#

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

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

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

  • sudo vi /etc/hosts

    2021-01-16-210113-image-0

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

    2021-01-16-210113-image-1