【问题标题】:Vagrant - Page timeout trying to access index.phpVagrant - 尝试访问 index.php 的页面超时
【发布时间】:2015-02-05 12:46:00
【问题描述】:

我刚刚使用 Scotch Box (http://box.scotch.io/) 设置了 Vagrant,并安装并运行了所有内容,没有任何错误,但是当我尝试访问本地服务器的 IP 时,它只是超时了。

这是我的 Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

  config.vm.box = "scotch/box"
  config.vm.network "private_network", ip: "192.168.33.10"
  config.vm.hostname = "scotchbox"
  config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]

end

有什么想法吗?

【问题讨论】:

  • 日志是怎么说的?
  • 事实证明,我的 Vagrant Host 唯一网络适配器正在获取 169 地址,它不会让我更改它。
  • 试过很多次了。

标签: apache vagrant lamp


【解决方案1】:

您可能已经想通了,如果有人遇到类似问题,可能是因为您在代理下,您需要为您的 vm 网络 ip 设置“无代理”[在您的情况下为 192.168.33.10]

例如,在我的 Firefox 中,我添加了以下内容,然后它开始运行。

localhost, 127.0.0.1,192.168.33.10,whatever-i-want.local

这是您在 Firefox 中访问它的方法

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-17
    • 1970-01-01
    • 2015-12-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多