Homestead 启动特别慢?

Homestead 环境安装的软件:

  1. virturalbox-5.2.14
  2. vagrant-2.1.2
  3. homestead Vagrant box-6.1.0
  4. Homestead 7.12.0
  5. 操作系统 win7 64位 旗舰版

Homestead.yaml 文件

ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
mariadb: true

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Code/work
      to: /home/vagrant/work/
    - map: ~/Code/study
      to: /home/vagrant/study/

sites:
    - map: larabbs.com
      to: /home/vagrant/study/larabbs/public
      php: '7.2'
    - map: mlxiu.com
      to: /home/vagrant/work/mlxiu.com
      php: '5.6'  

databases:
    - homestead
    - larabbs
    - mlxiu

# blackfire:
#     - id: foo
#       token: bar
#       client-id: foo
#       client-token: bar

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

错误现象

不能说算错误吧,就是启动的时候特别久。以前按照 laravel-china.org 教程上的步骤以及版本安装,启动时间很短的。特别是 mac 版本。现在的最新版本,启动太久了,要两三分钟。虽然最后成功了,这样让人难受。不知道有小伙伴们遇到过没,有什么好的方法。谢谢。

$ vagrant reload
==> homestead-7: Attempting graceful shutdown of VM...
==> 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: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Remote connection disconnect. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Remote connection disconnect. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Remote connection disconnect. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Remote connection disconnect. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Remote connection disconnect. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Remote connection disconnect. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Remote connection disconnect. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Connection reset. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    homestead-7: Warning: Remote connection disconnect. Retrying...
    homestead-7: Warning: Connection aborted. Retrying...
    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 => C:/Users/Administrator/Homestead
    homestead-7: /home/vagrant/work => C:/Users/Administrator/Code/work
    homestead-7: /home/vagrant/study => C:/Users/Administrator/Code/study
==> 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.

直播间
熊猫血

虚幻之物对应着冥冥之路!

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
讨论数量: 4

你有找到什么优化方法?

1年前 评论

我也是,解决办法吗

1年前 评论

Homestead启动慢是正常的,大概需要等待3-5分钟吧。

1年前 评论

可以看下这篇文章,或许你可以解决 分享:Homestead 安装问题汇总

1年前 评论

请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!