怎么找到对应的 Homestead 的版本?

我最近在基于Windows10下,布局laravel+homestead+virtual box
安装的镜像版本是homestead-2.0.0.box文件
在访问站点的时候发现服务器拒绝了我的访问,错误为:502 Bad Gateway
主机与虚拟机之间可以ping通
主要原因可能是:


$ vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Checking if box 'laravel/homestead' is up to date...
==> homestead-7: Clearing any previously set forwarded ports...
==> homestead-7: Clearing any previously set network interfaces...
==> homestead-7: Preparing network interfaces based on configuration...
    homestead-7: Adapter 1: nat
    homestead-7: Adapter 2: hostonly
==> homestead-7: Forwarding ports...
    homestead-7: 80 (guest) => 8000 (host) (adapter 1)
    homestead-7: 443 (guest) => 44300 (host) (adapter 1)
    homestead-7: 3306 (guest) => 33060 (host) (adapter 1)
    homestead-7: 4040 (guest) => 4040 (host) (adapter 1)
    homestead-7: 5432 (guest) => 54320 (host) (adapter 1)
    homestead-7: 8025 (guest) => 8025 (host) (adapter 1)
    homestead-7: 27017 (guest) => 27017 (host) (adapter 1)
    homestead-7: 22 (guest) => 2222 (host) (adapter 1)
==> homestead-7: Running 'pre-boot' VM customizations...
==> homestead-7: Booting VM...
==> homestead-7: Waiting for machine to boot. This may take a few minutes...
    homestead-7: SSH address: 127.0.0.1:2222
    homestead-7: SSH username: vagrant
    homestead-7: SSH auth method: private key
    homestead-7: Warning: Connection reset. Retrying...
==> homestead-7: Machine booted and ready!
==> homestead-7: Checking for guest additions in VM...
==> homestead-7: Setting hostname...
==> homestead-7: Configuring and enabling network interfaces...
==> homestead-7: Mounting shared folders...
    homestead-7: /vagrant => D:/homestead/Homestead
    homestead-7: /home/vagrant/code => D:/homestead/code
==> homestead-7: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> homestead-7: flag to force provisioning. Provisioners marked to run always will still run.
$ vagrant provision
==> homestead-7: Running provisioner: file...
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: inline script
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: inline script
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: inline script
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: C:/Users/16451/AppData/Local/Temp/vagrant-shell20180126-20188-rag873.sh
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating Certificate: blog.wang
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Creating Site: blog.wang
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: inline script
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Checking for old Schedule
==> homestead-7: Running provisioner: shell...
    homestead-7: Running: script: Clear Variables
    homestead-7: sed: can't read /etc/php/5.6/fpm/pool.d/www.conf: No such file or directory
    homestead-7: sed: can't read /etc/php/7.0/fpm/pool.d/www.conf: No such file or directory
    homestead-7: sed: can't read /etc/php/7.2/fpm/pool.d/www.conf: No such file or directory
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

看了Summer的关于版本冲突的问题,我觉得这是问题之一?
那么怎么找到对应版本的脚本,比如homestead-2.0.0?

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
讨论数量: 5
MengCY

教程里的homestead版本即可。

6年前 评论

今天也碰到这个问题,求解后来是怎么解决的呢?

6年前 评论

求解=- mac下安装遇到同样问题

6年前 评论

遇到同样的问题, 如何解决

5年前 评论
yh

emmm,是不是安装出了问题,可以看看这个教程
https://www.jianshu.com/p/ae9d1261bbd8

5年前 评论

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