JellyBool

17773 经验值

博主,我在安装homestead 的时候choice了1后安装出现了问题

Enter your choice: 1
==> box: Adding box 'laravel/homestead' (v0.2.7) for provider: virtual
    box: Downloading: https://atlas.hashicorp.com/laravel/boxes/homest
ns/0.2.7/providers/virtualbox.box
==> box: Box download is resuming from prior download progress
    box: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)-
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

HTTP server doesn't seem to support byte ranges. Cannot resume.

请问该怎么解决

之前弄过一个不太好用,能给推荐一下么

homestead要使用composer安装,而安装composer中要选择php的路径,所以要先安装php,而homestead中也含有php,这不是重复了么

homestead是虚拟机,homestead的php是虚拟机的php,你安装composer时候安装的是你自己机器的虚拟机

[生病]我又有新的问题了,homestead up的时候报错

C:/Users/g150th/AppData/Roaming/Composer/vendor/laravel/homestead/scripts/homest
ead.rb:91:in `read': No such file or directory - C:/Users/g150th/.ssh/id_rsa.pub
 (Errno::ENOENT)
        from C:/Users/g150th/AppData/Roaming/Composer/vendor/laravel/homestead/s
cripts/homestead.rb:91:in `block in configure'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/kerne
l_v2/config/vm_provisioner.rb:72:in `call'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/kerne
l_v2/config/vm_provisioner.rb:72:in `add_config'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/plugins/kerne
l_v2/config/vm.rb:317:in `provision'
        from C:/Users/g150th/AppData/Roaming/Composer/vendor/laravel/homestead/s
cripts/homestead.rb:89:in `configure'
        from C:/Users/g150th/AppData/Roaming/Composer/vendor/laravel/homestead/V
agrantfile:20:in `block in <top (required)>'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/c
onfig/v2/loader.rb:37:in `call'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/c
onfig/v2/loader.rb:37:in `load'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/c
onfig/loader.rb:103:in `block (2 levels) in load'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/c
onfig/loader.rb:97:in `each'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/c
onfig/loader.rb:97:in `block in load'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/c
onfig/loader.rb:94:in `each'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/c
onfig/loader.rb:94:in `load'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/v
agrantfile.rb:28:in `initialize'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/e
nvironment.rb:689:in `new'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/e
nvironment.rb:689:in `vagrantfile'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/e
nvironment.rb:441:in `host'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/e
nvironment.rb:207:in `block in action_runner'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/a
ction/runner.rb:33:in `call'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/a
ction/runner.rb:33:in `run'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/e
nvironment.rb:428:in `hook'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/lib/vagrant/e
nvironment.rb:671:in `unload'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/bin/vagrant:1
77:in `ensure in <main>'
        from E:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.4/bin/vagrant:1
77:in `<main>'

网上找了好久也不知道怎么解决

把你的homestead.yaml给我看一下,你可以到这里来问我。

https://laravist.com/discuss
这里我会回答得快一点

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: E:/php_code
      to: /home/vagrant/Code

sites:
    - map: blog.dev
      to: /home/vagrant/Code/Laravel/public

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

楼主帮我看一看,是因为我没有设置ssh么