我在Ubuntu 16.04上設置Vagrant/Homestead。流浪/宅基設置
我已經安裝了VirtualBox,Vagrant,Composer和PHP。
我下載家園從Git倉庫
混帳克隆https://github.com/laravel/homestead.git家園
我cd到宅基目錄
冉
慶典init.sh
收到消息家園初始化!
,但是,當我瀏覽到CD .homestead我得到那個說
慶典的錯誤消息:CD:.homestead:沒有這樣的文件或目錄
我也嘗試CD〜/ .homestead仍然收到bash:cd:.homestead:沒有這樣的文件或目錄
有關如何解決這個問題的任何想法?我提供了每個命令的終端命令和結果。現在
[email protected]:~$ cd web
[email protected]:~/web$ cd ..
[email protected]:~$ vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
box: URL:removed the url for posting purposes
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.
1) hyperv
2) parallels
3) virtualbox
4) vmware_desktop
Enter your choice: 3
==> box: Adding box 'laravel/homestead' (v2.1.0) for provider: virtualbox
box: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/2.1.0/providers/virtualbox.box
==> box: Successfully added box 'laravel/homestead' (v2.1.0) for 'virtualbox'!
[email protected]:~$ cd web
[email protected]:~/web$ git clone command removed the link for posting purposes //github.com/laravel/homestead.git Homestead
Cloning into 'Homestead'...
remote: Counting objects: 2184, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 2184 (delta 0), reused 0 (delta 0), pack-reused 2180
Receiving objects: 100% (2184/2184), 383.40 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1266/1266), done.
Checking connectivity... done.
[email protected]:~/web$ cd Homestead
[email protected]:~/web/Homestead$ bash init.sh
Homestead initialized!
[email protected]:~/web/Homestead$ cd ..
[email protected]:~/web$ cd ..
[email protected]:~$ cd .homestead
bash: cd: .homestead: No such file or directory
[email protected]:~$ cd ~/Homestead
bash: cd: /home/font/Homestead: No such file or directory
errr ..你什麼..? 'git clone' ..??不,[Homestead文檔](https://laravel.com/docs/5.4/homestead#installation-and-setup)明確指出您需要多個軟件。注意** Vagrant是在單個工作流中構建和管理虛擬機環境的工具。通過易於使用的工作流程和專注於自動化的方式,Vagrant降低了開發環境的設置時間,提高了產品平價,並使得「在我的機器上工作」可以避免過去的遺留問題。**正如其介紹頁所述。 –
我更新了我的問題。我已經安裝了我已經安裝了VirtualBox,Vagrant,Composer和PHP。 –