When I was watching the teaching video, after installing PHPstudy, I talked about binding the domain name I created to the IP of the local machine and modifying a hosts file, but the modification was always unsuccessful. Has anyone encountered the same problem?
Because the windows account you are using does not have administrator rights, you can directly go to the C drive>windws>system32>drivers folder to find the hosts file, right-click to open it with administrator rights, and modify and save
That’s it
To configure the site domain name, you also need to open the Hsot file on the C drive. The format is as follows: 127.0.0.1 www.xxxxx.com. The default port is 80. If the virtual domain name port you configure is 81, you must enter it in the browser. The domain name is www.xxxxx.com:81 to access.