win10 安裝vagrant + VirtualBox並安裝系統(linux/centos/ubuntu)__linux

來源:互聯網
上載者:User
vagrant可以使用命令列快速搭建linux系統,實現開發環境同步。 步驟 準備工具 安裝VirtualBox 安裝Vagrant 下載box系統鏡像http://www.vagrantbox.es/   (推薦一個老外整合好的開發環境,官網介紹https://box.scotch.io/,我用命令列下載太大失敗,所以抓取到url:https://atlas.hashicorp.com/scotch/boxes/box/versions/2.5/providers/virtualbox.box) 開始安裝鏡像 我把vagrant安裝在d盤,安裝好後配置下環境變數, 讓cmd有vagrant這個命令,然後測試vagrant是否安裝成功:
vagrant -v

安裝vagrant box,我下的box是centos6.6版本,centos6.6隨意命名,centos-6.6-x86_64.box 是你下載的檔案路徑
vagrant box add centos6.6 centos-6.6-x86_64.box
建立並進入一個想組建組態檔案的目錄,初始化鏡像,最終產生Vagrantfile這個設定檔
vagrant  init centos6.6
進行ip配置後
vagrant up
就成功了,可以ping 其ip試試,同時開啟virtual box軟體就可以看到 一台虛擬機器在運行了。
參考博文和相關官網: http://www.cnblogs.com/suihui/p/4362233.html
https://segmentfault.com/a/1190000000264347
http://www.cnblogs.com/ac1985482/p/4029315.html
https://box.scotch.io/

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.