Hosts is a system file without extension, which can be opened with tools such as Notepad. Its function is to establish an associated "database" between some commonly used website domain names and their corresponding IP addresses. , when the user enters a URL that needs to be logged in in the browser, the system will first automatically search for the corresponding IP address from the Hosts file. Once found, the system will immediately open the corresponding web page. If not found, the system will submit the URL again. The DNS domain name resolution server performs IP address resolution. (Recommended learning: phpstorm)
Double-click the computer, open the C drive, and click the Windows folder.
Click on the System32 folder and click on the drivers folder.
Click on the etc folder.
You can see the location of the hosts file.
The above is the detailed content of win7 hosts file location. For more information, please follow other related articles on the PHP Chinese website!