linux - 本地访问vmware虚拟机,地址可访问,域名不可访问
怪我咯
怪我咯 2017-04-17 14:46:13
0
3
702

用浏览器去访问,是可以找到虚拟机下配的lamp

但是,地址可以访问,域名不可访问,麻烦大神帮忙,找了好久答案,也没找到

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
Peter_Zhu

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.

Peter_Zhu

Do you resolve the domain name to 192.168.1.2 and then want to access the virtual machine? . .

Peter_Zhu

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!