服务器教程 · 2024年11月24日

Vagrant的安装以及使用

一、Vagrant的安装

  • Vagrant的下载地址
    官方地址:https://www.vagrantup.com/downloads.html
  • Vagrant的官方安装以及使用文档
    官方文档:https://www.vagrantup.com/downloads.html
    gitHub文档:https://github.com/astaxie/go-best-practice/blob/master/ebook/zh/preface.md

 

  • box集下载地址:
    官方地址:http://www.vagrantbox.es
    下载地址2:https://atlas.hashicorp.com/boxes/search
    下载地址3(推荐)https://github.com/chef/bento

二、使用技巧

设置boxes的存放路径,默认是:/home/woodie/.vagrant.d/

vim /etc/profile
export VAGRANT_HOME=/data/vagrant/

三、参考文章

使用 Vagrant 打造跨平台开发环境