用户工具

站点工具


linux:vagrant

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

后一修订版
前一修订版
linux:vagrant [2017/12/14 10:05] – 创建 memorylinux:vagrant [2023/12/03 10:24] (当前版本) – 外部编辑 127.0.0.1
行 8: 行 8:
 vagrant init debian/jessie64 vagrant init debian/jessie64
 vagrant up  # boot VM vagrant up  # boot VM
 +
 +vagrant ssh [name]  # connect to VM
 </code> </code>
  
行 56: 行 58:
   end   end
 end end
 +</code>
 +
 +==== configuration ====
 +
 +Port forward:
 +
 +<code ruby>
 +config.vm.network "forwarded_port", guest: 8080, host: 8080
 </code> </code>
  
行 61: 行 71:
  
   * [[https://www.vagrantup.com/docs/index.html|Vagrant Documentation]]   * [[https://www.vagrantup.com/docs/index.html|Vagrant Documentation]]
 +  * [[https://favoorr.github.io/2017/01/06/vagrant-virtualbox-vagrantfile-config-best-practices/|vagrant 虚拟机配置最佳实践]]
linux/vagrant.1513217130.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)