【強迫癥】使用Parallels運行Homestead

下載最新的Vagrant:

https://www.vagrantup.com/downloads.html

Homestead切到最新的發(fā)布分支:

https://github.com/laravel/homestead/releases

安裝Vagrant-Parallels插件:

https://github.com/Parallels/vagrant-parallels

插件有個英文文檔:

https://parallels.github.io/vagrant-parallels/docs/usage.html

下面的步驟很重要:

修改Homestead.yaml:

# 把數(shù)據(jù)庫自動備份打開
backup: true 

把舊的虛擬機刪除(啟動狀態(tài)下):

vagrant destroy --force

之前虛擬機中的數(shù)據(jù)庫會被自動備份到Homestead文件中的這個位置:


image.png

把virtualbox的盒子刪掉:

vagrant box remove laravel/homestead

把虛擬機提供者改掉(Homestead.yaml文件):

provider: parallels

運行安裝新的盒子:

vagrant box add laravel/homestead

嫌慢就用迅雷:

https://vagrantcloud.com/laravel/boxes/homestead/versions/7.1.0/providers/parallels.box

迅雷下載好了手動加盒子:

vagrant box add laravel/homestead ~/Downloads/virtualbox.box

去這個位置:

~/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead

把文件夾名字改成盒子版本號,另外創(chuàng)建一個metadata_url文件,內(nèi)容是:

https://app.vagrantup.com/laravel/boxes/homestead

最后

vagrant up

啟動的過程中可能會有一段黃色的文字提示tools不是最新版:

http://download.parallels.com/desktop/v10/docs/zh_CN/Parallels%20Desktop%20User%27s%20Guide/33306.htm

最后編輯于
?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容