search

Home  >  Q&A  >  body text

linux - 本地访问vmware虚拟机,地址可访问,域名不可访问

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

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

怪我咯怪我咯2769 days ago723

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师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.

    reply
    0
  • 天蓬老师

    天蓬老师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? . .

    reply
    0
  • 天蓬老师

    天蓬老师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

    reply
    0
  • Cancelreply