linux

linux hosts 파일 수정

이건욱 2020. 7. 4. 22:18

hosts 파일 접근

sudo vi /private/etc/hosts 

 

내용 편집

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost

 

내용 저장 후 dns cache 갱신

$ dscacheutil -flushcache