用浏览器去访问,是可以找到虚拟机下配的lamp
天蓬老师2017-04-17 14:48:13
What address is used?
Where is the browser? (On the host or virtual machine)
Which domain name is used for the domain name? (localhost or your own domain name)
Please make the question clear, otherwise no one will know how to answer it.
天蓬老师2017-04-17 14:48:13
Do you resolve the domain name to 192.168.1.2 and then want to access the virtual machine? . .
天蓬老师2017-04-17 14:48:13
Edit the hosts file (don’t tell me where it is) and add a line: your virtual machine IP + a number of spaces + the domain name you want to access
We all use this method when testing locally