laravel - error when starting vagrant up from command line
高洛峰
高洛峰 2017-05-16 16:54:20
0
2
476

A Vagrant environment or target machine is required to run this
command. Run vagrant init to create a new Vagrant environment. Or,
get an ID of a target machine from vagrant global-status to run
this command on. A final option is to change to a directory with a
Vagrantfile and to try again.

Environment: osx 10.11, vagrant 1.7.4
The above is the detailed error message. Although it can be solved by using vagrant up [id], it does not need to be specified before. What is the problem?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
洪涛

Vagrant usage process (personal summary):

1. View the local box list:

vargant box list

2. Select the box and initialize the environment:

vagrant init [box name]

It will be generated at this time.vagrant/Vagrantfile

3. Edit Vagrantfile files, such as IP, number of CPUs, RAM

4. Start vagrant

vagrant up

See what step you are missing.

左手右手慢动作

I personally feel that it is not running in the vagrantfile directory, so this error is reported

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!