- 安装VirtualBox
- 安装vagrant
- 安装git客户端
- 下载并解压(不能是中文目录)最新版本脚本 https://github.com/lisxp/vagrantfile
- 进入目录
vagrantfile右键打开Git Bash cp config.json.example config.json- 编辑
config.jsonfolders共享文件夹,本机映射到虚拟机sites配置域名
- 本机
hosts添加一行192.168.10.10 test.box(config.json里面配置的域名)
vagrant box add lis/centos
vagrant up- 浏览器访问
IP 192.168.10.10或域名test.box
PHP 7.3.5nginx 1.16.0git 2.22.0node 10.15.3npm 6.4.1composer v.8.5redis-cli 3.2.12