Vagrant使用教程
目标
- 成果是打包一个box镜像
- 这个box镜像需要运行 LAMP(Linux + Apache + Mysql + PHP ) 和 LNMP( Linux + Nginx + Mysql + PHP)
- 配置好3个比较流行的PHP框架运行环境
- Yii2
- Laravel5
- ThinkPHP5
VirtualBox 5.1.8
- 下载地址 https://www.virtualbox.org/wiki/Download_Old_Builds_5_1
Vagrant 1.8.6
- 下载地址:https://releases.hashicorp.com/vagrant/1.8.6/
- 切记根据自己的操作系统下载,同时分32位和64位
Windows 额外工作
- 可能需要配置环境变量
- 安装Xshell命令行工具
- 注意,一定要开启 VT-x/AMD-V 硬件加速
- box下载
- 链接一