centos7 2

# VM CentOS7์—์„œ yum error [could not resolve host] ๋ฐœ์ƒ

vm์— centos ๊ตฌ์„ฑ ํ›„ yum ์‹คํ–‰์‹œ ํ•ด๋‹น ์—๋Ÿฌ๋กœ ์„ค์น˜๊ฐ€ ์•ˆ๋  ๋•Œ๊ฐ€ ์žˆ๋‹ค. ํ™•์ธ์‚ฌํ•ญ 1. ping์œผ๋กœ ์™ธ๋ถ€ ํ†ต์‹  ํ…Œ์ŠคํŠธ $ ping 8.8.8.8 ํ™•์ธ์‚ฌํ•ญ 2. NetworkManager resolve.conf ํ™•์ธ $ vi /etc/resolv.conf nameserver 192.168.10.1 # ์ถ”๊ฐ€ $ systemctl restart NetworkManager # NetworkManager ์žฌ์‹คํ–‰ $ systemctl status NetworkManager # NetworkManager ๊ธฐ๋™ ํ™•์ธ ๋‹ค์‹œ yum install ์ˆ˜ํ–‰ํ•˜๋ฉด ์ •์ƒ ์ˆ˜ํ–‰ ๋  ๊ฒƒ์ด๋‹ค.

OS/Error 2021.01.18

# VirtualBox์—์„œ CentOS7 ๊ณ ์ • IP ์„ค์ •

๊ธฐ๋ณธ์ ์œผ๋กœ Clean OS๋ฅผ ์„ค์น˜ํ–ˆ๋‹ค๋ฉด ์•„๋ž˜ ์ž‘์—…์€ ํ•ด์ฃผ์ž. yum update yum install epel-release -y Step 1. VirtualBox ๋„คํŠธ์›Œํฌ ์„ค์ •ํ•˜๊ธฐ Step 2. ์„œ๋ฒ„์˜ ๋„คํŠธ์›Œํฌ ์„ค์ • ๋ณ€๊ฒฝ $ vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 TYPE="Ethernet" PROXY_METHOD="none" BROWSER_ONLY="no" BOOTPROTO="dhcp" DEFROUTE="yes" IPV4_FAILURE_FATAL="no" IPV6INIT="yes" IPV6_AUTOCONF="yes" IPV6_DEFROUTE="yes" IPV6_FAILURE_FATAL="no" IPV6_ADDR_GEN_MODE="stable-privacy"..

OS 2021.01.12