ݺߣ
Search
Submit Search
ղԳٽѧ
?
6 likes
?
1,674 views
Onnie Fong
vagrant ĺ̌W
Read less
Read more
1 of 20
Download now
Downloaded 31 times
More Related Content
ղԳٽѧ
2.
CVagrant Create and con?gure
lightweight, reproducible, and portable development environments.
3.
C Onnie p?ʽ?Ƅӣ_lh
4.
VAGRANT ĵλ Vagrant Virtualization ProductVirtualBox,VMware OSLinux,Windows,Mac
5.
Abܛw ? Vagrant?֧ԮϣVirtualBox,VMware,AWS ? hʹ?VirtualBox ?
VirtualBoxdWַ? https://www.virtualbox.org/
6.
VAGRANTdb ? Vagrantd? http://www.vagrantup.com/downloads.html ? Vagrant
Cloud? https://vagrantcloud.com/
7.
VAGRANT ? vagrant
cloud? l?boxƽ̨ ? vagrant box? ӳnvagrantQ֮box ? vagrant vm? vagrant?̓MC
8.
մҸ鴡?ʾͼ
9.
ָe ָ? ? vagrant box
? vagrant vm
10.
1.VAGRANT BOX ?
vagrant box add ? vagrant box remove ? vagrant box list
11.
2.VAGRANTVM ?cƳVM ? vagrant
init ? vagrant destroy
12.
2.VAGRANTVM ӣPCcd? ? vagrant
up ? vagrant halt ? vagrant reload
13.
2.VAGRANTVM M?cx_VM ? vagrant
ssh ? exit
14.
DEMO ? dbVirtualBox Vagrant ?
?KM?VMYϊA? mkdir vbox;cd vbox; ? ?VM? vagrant init ubuntu/trusty64 ? VM? vagrant up ? ?VM? vagrant ssh
15.
VAGRANTOn ? ?һVM?һOnVagrant?le ? ͨVMڵ??Ŀe ?
׃OnᣬָxȡOn? vagrant reload
16.
VMľW·O ? C4567portָVM80port? con?g.vm.network :forwarded_port,
host: 4567, guest: 80 ? OVMIP?ֻбCܴȡ? con?g.vm.network :private_network , ip:192.168.50.4" ? OCęCԴȡ? con?g.vm.network :public_network
17.
ͬYϊA ? CVM??һYϊA? VMڵ??Ŀ=VMe^ /vagrant ?
VMe^/vagrantęAO? Ψx?ҟo׃? 횏vagrant?leO?
18.
ͬYϊA - O ?
Oͬ??Ŀ䛣(ͬ?һ?)? con?g.vm.synced_folder ."? , "/vagrant"? , :mount_options => ["dmode=777","fmode=666"]
19.
o UP ? Еr
vagrant upʧԴ_GUI?棬 鿴l?ԭ? vb.gui = true
20.
Ո ? VagrantپW? http://www.vagrantup.com/ ? Vagrant
doc? https://docs.vagrantup.com/v2/
Download