Skip to content

Commit 5ed61fd

Browse files
committed
docs: add README
1 parent 8f29882 commit 5ed61fd

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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`

0 commit comments

Comments
 (0)