Home  >  Q&A  >  body text

linux - 主机无法访问虚拟机的httpd服务

主机和虚拟机能相互访问,虚拟机安装和启动了httpd服务,在主机浏览器输入虚拟机地址无法访问

PHP中文网PHP中文网2743 days ago824

reply all(6)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 15:32:12

    Turn off the virtual machine’s firewall

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 15:32:12

    It may also be an Apache configuration issue

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 15:32:12

    iptables -F

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 15:32:12

    Whether the port number is 80

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 15:32:12

    Is the virtual machine running on your local machine? Try using bridge network mode

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:32:12

    1. First check whether the network can be connected (ping)
    2. Check whether http port 80 is occupied
    3. Whether the virtual machine firewall is turned on, and the firewall configuration you gave only has input but not output. . The default firewall is drop

    reply
    0
  • Cancelreply