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.
直播间 熊猫血 虚幻之物对应着冥冥之路!
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 4

你有找到什么优化方法?

5年前 评论

我也是,解决办法吗

5年前 评论

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

5年前 评论

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