SORU
11 Temmuz 2012, ÇARŞAMBA


Tam Serseri komutları ne yaparsınız?

Şaşırtıcı Serseri komutları ne, "" öğretici. başlarken boyunca referencse dışında belge yok hayır

Ben şimdiye kadar işe yaradı ne var:

  • 5* * - "boxes" . Yönet
  • destroy - VM saklı imajını silmek kapatmak?
  • gem
  • halt - VM kapatın
  • init - yeni bir Vagrantfile ile bir dizin hazırlamak
  • package - VM kapatmak, dönüştürmek sonra 'bir kutu haline olabilir? (Veya bir şey)
  • provision - sadece (örneğin, Şef, Kukla...) hazırlama aşamasında çalıştırın
  • reload - VM yapılandırması (örneğin, yeniden Vagrantfile) değiştir VM yeniden, yeniden
  • resume - BM-askıya alma (yani, unhibernate)
  • ssh - VM için SSH kabuk bağlantısı açık
  • ssh-config
  • status
  • suspend - VM hazırda
  • up - bazıları ya da hepsi: yeni bir VM oluşturmak için VM bir görüntü, bu, önyükleme yapılandırma uygulamak kopyalayın

Bu hakkım var mı? Diğerleri ne? Hala biraz reload destroy/uparasında tam olarak ne farkı anlamış değilim.

CEVAP
11 Temmuz 2012, ÇARŞAMBA


vagrantup belgelere daha kısa tarafında olduğunu sana katılıyorum.

Bazı bilgiler komut yardım sistemi panoda mevcuttur.

1) örneğin: gem komut.

Sadece argümanlar olmadan komutu yazın: vagrant gem -h ve ihtiyacınız olan bilgileri verir.

`vagrant gem` is used to install Vagrant plugins via the RubyGems
system. In fact, `vagrant gem` is just a frontend to the actual `gem`
interface, with the difference being that Vagrant sets up a custom
directory where gems are installed so that they are isolated from your
system gems.

2) 25**:

Under the hood, when you execute `vagrant ssh` to ssh into VM. 
It is utilizing it's well known ssh key. The information on this key is provided by 
`vagrant ssh-config`. This is useful in case you want to change the well know key to 
your own private key and prepare boxes to use that. 

Also some times, you may want to use ssh based automation with your VMs. 
In that case, knowing which key is being used is useful. 
You could do use normal ssh command - `ssh -i keyfile ..`

3) vagrant status <vmname>

This command is a wrapper which provides the information on the status of vm. 
It could be running, saved and powered off.

4) vagrant reload

If you make any changes to the configuration in vagrantfile which needs to take effect. 
You may want to reload the VM. It re-runs the provisioning defined in the vagrantfile 
unless you ask it not too.

It does not destroy the VM you have created from a base box. 
That means all the changes you have made to your VM, like say created a folder in 
your user directory will be there after reload. 

It is like reboot where it powers off your VM
and then applies certain configuration change which can be applied only 
when VM has been powered off. and then power it on.
Example: like attaching another SATA Virtual Disk. 

5) vagrant up

This reads your configuration file - `vagrantfile` and then creates a VM from base box.
Base Box is like a Template. You can create many VMs from it. 

Similarly, `vagrant destroy` destroys your VM. In this case all changes you made 
when inside it will be lost. But thats the cool idea that you can start from a base 
predefined state when you create a new VM.

Gerçekten ve blogged about it kullanarak gibi.

Özet olarak, İsmen ve API Komutları üzerinde iyi bir sarıcı. Yeteneklerini biraz daha iyi anlamak için VirtualBox commands de bir göz atabilirsiniz.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • audivila

    audivila

    5 HAZİRAN 2009
  • Facebook Developers

    Facebook Dev

    24 ŞUBAT 2009
  • National Geographic

    National Geo

    7 Mayıs 2006