LaravelHomestead安装教程

王朝学院·作者佚名  2016-08-28
窄屏简体版  字體: 小  |  中  |  大  |  超大  

1/先在https://www.vagrantup.com 下载vagrantup ,对应平台下载,并安装,安装后可以在命令行使用vagrant

https://www.vagrantup.com/downloads.html 下载地址

mac:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1.dmg

windos:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1.msi

debian 64:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb

debian 32:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_i686.deb

cetnos 32:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_i686.rpm

cetnos 64:https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.rpm

2/命令行输入 ,安装laravel虚拟homestead

vagrant box add laravel/homestead

此时会下载homestead 的虚拟BOX,在此之前 一定要安装 vbox或vm 这里只给出mac 的 下载地址

https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.4.0/PRoviders/virtualbox.box

可以将上条命令改为

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

3/下载homestead脚本库(前提已经安装composer,并安装过laravel)

没有安装可以执行

composer global require"laravel/installer"cd~git clone https://github.com/laravel/homestead.git Homesteadbash init.sh //会在~/.homestead目录下生产相应文件

4/启动homestead

cd ~/.homestead

vagrant init //此步骤可以省略如果已经配置好了,不然依照键入

vagrant up

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝網路 版權所有 導航