Laravel 本地环境Homestead搭建
安装必要的软件:
链接:https://pan.baidu.com/s/1C4xcGQxxzQJV649KnWeXUQ
提取码:tlcc
--来自百度网盘超级会员V4的分享
VirtualBox 6.1.x
Vagrant
homestead官方配置
安装 Homestead
创建homestead目录E:\Hd
在Hd目录下,用 git 运行如下命令:
git clone https://gitee.com/summerblue/homestead.git
bash init.sh
生成秘钥命令
运行命令:
cd homestead
ssh-keygen -t rsa
生成的秘钥:
接下来,按照百度网盘中的Homestead.yaml 配置文件进行配置
安装 Bonjour Print Services for Windows ,让Homestead 使用 mDNS 发布主机名以进行自动主机解析
在C盘:C:\Windows\System32\drivers\etc,配置Host对应的的虚拟域名:
启动Homestead,让系统自动配置VirtualBox的镜像,加载对应的工程代码映射(会很长时间):