File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ### vagrantfile
2+
3+ #### 前置条件
4+
5+ - 安装[ VirtualBox] ( https://www.virtualbox.org/wiki/Downloads )
6+ - 安装[ vagrant] ( https://www.vagrantup.com/downloads.html )
7+ - 安装[ git客户端] ( https://git-scm.com/downloads )
8+
9+ #### 安装开发环境
10+
11+ - 下载并解压(不能是中文目录)最新版本脚本 [ https://github.com/lisxp/vagrantfile ] ( https://github.com/lisxp/vagrantfile/releases )
12+ - 进入目录 ` vagrantfile ` 右键打开 ` Git Bash `
13+ - ` cp config.json.example config.json `
14+ - 编辑` config.json `
15+ - ` folders ` 共享文件夹,本机映射到虚拟机
16+ - ` sites ` 配置域名
17+ - 本机` hosts ` 添加一行 ` 192.168.10.10 test.box ` (config.json里面配置的域名)
18+
19+ ---
20+ ##### --> 在线安装
21+ - ` vagrant box add lis/centos `
22+
23+ ##### --> 离线安装
24+ - 将` lis-centos.box ` 文件复制到当前目录
25+ - ` vagrant box add centos lis-centos.box `
26+
27+ ---
28+
29+ - ` vagrant up `
30+ - 浏览器访问` IP 192.168.10.10 ` 或域名` test.box `
31+
32+
33+
34+ ---
35+
36+ #### 预装应用
37+
38+ - ` PHP 7.3.5 `
39+ - ` nginx 1.16.0 `
40+ - ` git 2.22.0 `
41+ - ` node 10.15.3 `
42+ - ` npm 6.4.1 `
43+ - ` composer v.8.5 `
44+ - ` redis-cli 3.2.12 `
You can’t perform that action at this time.
0 commit comments