개발/Server

localhost 도메인설정

leebera_ 2022. 5. 8. 19:06

Mac

/etc/hosts 파일을 관리자 권한으로 실행

sudo vi /etc/hosts

 

원하는 도메인을 추가

127.0.0.1   원하는도메인

 

Window

메모장을 관리자 권한으로 실행

C:/Windows/System32/drivers/etc/hosts 파일 열기

원하는 도메인 추가

127.0.0.1   원하는도메인
 

 

Mac 참고

 

How To Change Mac Hosts File Right Now – Setapp

Learn how to edit Hosts file on Mac using Terminal and why backing it up is essential to any developer’s workflow.

setapp.com

 

Window 참고

 

How to Edit the Hosts File in Windows 10

There's an easy way and a hard way to edit the hosts file in Windows 10. In this article, we'll show you both.

www.groovypost.com