Homestead 启动特别慢?
Homestead 环境安装的软件:
- virturalbox-5.2.14
- vagrant-2.1.2
- homestead Vagrant box-6.1.0
- Homestead 7.12.0
- 操作系统 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.
推荐文章: