0

私はVagrantを初めて使用します。私の上司は、私にウェブサイトを運営してほしいと言っています。まず、VirtualBox と Vagrant をインストールするように言われました。彼は、bootstrap.sh と Vagrantfile ファイルを送ってくれました。これを「data_repo」というフォルダにコピーするように言われました。その後、「data_repo」から「vagrant up」コマンドを実行するように言われました。私はそれをしましたが、次のエラーが表示されます:

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.

修正方法を教えていただけないでしょうか。

4

4 に答える 4

0

Vagrantfile は 1 つだけにする必要があります。そのフォルダー (data_repo) に Vagrantfile (V 大文字で拡張子なし) があることを確認してください。

こちらのドキュメントに従ってください

https://www.vagrantup.com/docs/getting-started/

于 2016-05-26T16:32:04.950 に答える