[关闭]
@gabe 2017-02-20T06:00:26.000000Z 字数 401 阅读 1874

vagrant LNMP环境

php lnmp


准备工作

安装好vagrantvirtualbox
下载intvdev1.0.boxVagrantfile,

vagrant box

  1. $ vagrant box list #查看本地已有的box
  2. $ vagrant box add intvdev1.0 /yourdownloadpath/intvdev1.0.box #添加到本地的box列表中
  3. $ vagrant box list #确认已经添加成功

新建工作目录

  1. $ mkdir ~/vagrant_dev
  2. $ cd vagrant_dev
  3. $ cp /yourdownloadpath/Vagrantfile ./ #把之前下载的Vagrantfile拷贝到当前目录
  4. $ vagrant up #启动虚拟机
  5. $ mkdir www #创建web根目录

在www目录下新建一个index.php文件
用浏览器访问http://localhost:8081/index.php来测试

原文链

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注