Vagrant 上装 了一个开发环境 做好配置了为什么 浏览器请求没有反应?

D:\Oracle\server>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'web'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: server_default_1418176788117_2739
Vagrant cannot forward the specified ports on this VM, since they
would collide with some other application that is already listening
on these ports. The forwarded port to 8080 is already in use
on the host machine.

To fix this, modify your current projects Vagrantfile to use another
port. Example, where '1234' would be replaced by a unique host port:

  config.vm.network :forwarded_port, guest: 80, host: 1234

Sometimes, Vagrant will attempt to auto-correct this for you. In this
case, Vagrant was unable to. This is usually because the guest machine
is in a state which doesn't allow modifying port forwarding.

D:\Oracle\server>vagrant reload
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
    default: Adapter 3: bridged
==> default: Forwarding ports...
    default: 80 => 8080 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => D:/Oracle/server
    default: /var/www/html => E:/www

D:\Oracle\server>

用SSH 127.0.0.1 2222 可以进到机器中

不解析PHP文件是为什么!

《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 20
Summer

我们不是有 Markdown 可以用吗, 一上来一堆乱七八糟的字符...

9年前 评论
Summer

@knewmei 哈哈, 我已经把你改过来了. 还有, 评论里你贴的内容 太乱了, 我删了, 你重新贴下咯.

你用的是最新版本的 Homestead 吗?

难道讲我还要这个环境里在装一个LNMP?

Homestead 里面已经有软件了, 见这里: http://learnku.com/docs/homestead#included...

Homestead 运行的脚本可以见这里: https://github.com/laravel/settler

9年前 评论
Summer

有可能是没有 provision 完全, 试试看:

vagrant provision

然后再

vagrant reload

试试

9年前 评论
Summer

@knewmei 运行 vagrant provision 了吗?

9年前 评论
Summer

@knewmei

无法理解 不能启用 什么意思.

运行 vagrant provision 的时候报错??

9年前 评论
Summer

@knewmei

发现过几次 Homestead 里面的软件有问题, 都是因为: vagrant provision 运行不全面造成的 (报错, 断网, 下载东西错误 etc.. ).

9年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!