Configure Laravel Homestead Vagrant box Start service error
Source: Internet
Author: User
Keywordslaravelhomesteadvagrantbashphp
Reference HTTPS://PHPHUB.ORG/TOPICS/2 According to the above prompt configuration, the error in running vagrant up is as follows:
Administrator@LUHSQLSY0HHQ5J6 MINGW32 /e/home/vagrant/mytwitter$ vagrant upA Vagrant environment or target machine is required to run thiscommand.Run `vagrant init` to create a new Vagrant environment. Or,get an ID of a target machine from `vagrant global-status` to runthis command on. A final option is to change to a directory with aVagrantfile and to try again.
Configuration Checklist:
Homestead Up Tips:
C:\users\administrator\.homestead>homestead Upc:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/psych.rb:370:in ' Parse ': (
):d ID not find expected '-' indicator and parsing a block collection at line 5 (psych::syntaxerror) FR Om c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/psych.rb:370:in ' Parse_stream ' from c:/hashicorp/vagrant/embedded/ Lib/ruby/2.2.0/psych.rb:318:in ' parse ' from c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/psych.rb:245:in ' load ' From C:/users/administrator/appdata/roaming/composer/vendor/laravel/homestead/vagrantfile:20:in ' block in
' From C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/v2/loader.rb:37:in ' call ' fr Om c:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/v2/loader.rb:37:in ' load ' from C:/ Hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:113:in ' block (2 levels) in load ' fr Om c:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:107:in ' Each ' from C:/ Hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:107:in ' block in load ' from C:/Hash Icorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:104:in ' Each ' from C:/HashiCorp/ Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:104:in ' Load ' from C:/HashiCorp/Vagrant/ Embedded/gems/gems/vagrant-1.8.1/lib/vagrant/vagrantfile.rb:28:in ' Initialize ' from c:/hashicorp/vagrant/embedded /gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:740:In ' new ' from C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:740:in ' Vagrantfile ' from C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:486:in ' host ' From C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:208:in ' Block in Action_ Runner ' from C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:33:in ' call ' From C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:33:in ' Run ' from C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:473:in ' hooks ' from C:/HashiCorp/ Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:722:in ' unload ' from c:/hashicorp/vagrant/ Embedded/gems/gems/vagrant-1.8.1/bin/vagrant:177:in ' ensure in
' from C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant:177:in '
Reply content:
Reference HTTPS://PHPHUB.ORG/TOPICS/2 According to the above prompt configuration, the error in running vagrant up is as follows:
Administrator@LUHSQLSY0HHQ5J6 MINGW32 /e/home/vagrant/mytwitter$ vagrant upA Vagrant environment or target machine is required to run thiscommand.Run `vagrant init` to create a new Vagrant environment. Or,get an ID of a target machine from `vagrant global-status` to runthis command on. A final option is to change to a directory with aVagrantfile and to try again.
Configuration Checklist:
Homestead Up Tips:
C:\users\administrator\.homestead>homestead Upc:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/psych.rb:370:in ' Parse ': (
):d ID not find expected '-' indicator and parsing a block collection at line 5 (psych::syntaxerror) FR Om c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/psych.rb:370:in ' Parse_stream ' from c:/hashicorp/vagrant/embedded/ Lib/ruby/2.2.0/psych.rb:318:in ' parse ' from c:/hashicorp/vagrant/embedded/lib/ruby/2.2.0/psych.rb:245:in ' load ' From C:/users/administrator/appdata/roaming/composer/vendor/laravel/homestead/vagrantfile:20:in ' block in
' From C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/v2/loader.rb:37:in ' call ' fr Om c:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/v2/loader.rb:37:in ' load ' from C:/ Hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:113:in ' block (2 levels) in load ' fr Om c:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:107:in ' Each ' from C:/ Hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:107:in ' block in load ' from C:/Hash Icorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:104:in ' Each ' from C:/HashiCorp/ Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/config/loader.rb:104:in ' Load ' from C:/HashiCorp/Vagrant/ Embedded/gems/gems/vagrant-1.8.1/lib/vagrant/vagrantfile.rb:28:in ' Initialize ' from c:/hashicorp/vagrant/embedded /gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:740:In ' new ' from C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:740:in ' Vagrantfile ' from C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:486:in ' host ' From C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:208:in ' Block in Action_ Runner ' from C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:33:in ' call ' From C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action/runner.rb:33:in ' Run ' from C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:473:in ' hooks ' from C:/HashiCorp/ Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/environment.rb:722:in ' unload ' from c:/hashicorp/vagrant/ Embedded/gems/gems/vagrant-1.8.1/bin/vagrant:177:in ' ensure in
' from C:/hashicorp/vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant:177:in '
vagrant upNeeds to be init executed under the directory.
My general steps are:
Download virtualbox.box file
vagrant box add laravel/homestead
Then choose virtualbox , will automatically download virtualbox.box , but very slow, copy the address and then use Thunder or Baidu network disk download. Then execute one add and specify a good path
Add tobox
vagrant box add laravel/homestead
Installationhomestead
composer global require "laravel/homestead=~2.2"
Then ~/.composer/vendor/bin add to the environment variable
Initialize, and run
homestead inithomestead edit
Set up the shared folder, map the port, and then it's OK.
homestead up
Excuse me, is there a catalogue in Homestead vagrant up ?
Step1:composer require Laravel/homestead Step2:./vendor/bin/homestead make Step3:vagrant up
An error is vagrant init initialization. I just got this thing right, too.
Follow the prompts to initialize Vagrant init in the directory before vagrant up
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.