最新回答 / MACDfree
課程中講到Vagrantfile文件中最后可以執(zhí)行shell,那就可以執(zhí)行bash命令,類似于:config.vm.provision "shell", inline: <<-SHELL? ?echo "127.0.0.1 ? localhost ? ? ? localhost" >> /etc/hostsSHELL然后執(zhí)行ragrant reload --provision來運(yùn)行命令
2017-08-07
最贊回答 / 魏銘軒
修復(fù)步驟:如果沒有vbguest插件,請安裝:$ vagrant plugin install vagrant-vbguest跑流汗顯示錯誤。$ vagrant up登錄虛擬機(jī)$ vagrant ssh固定!在客人端(VM記錄)。$ sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions回到主機(jī)上,重新加載Vagrant$ vagrant reload
2017-07-30
vagrant@vagrant-ubuntu-trusty-64:/etc/nginx/conf.d$ sudo service nginx restart
* Restarting nginx nginx
...fail!
* Restarting nginx nginx
...fail!
2017-07-29
如果出現(xiàn)VBoxManage這個命令找不到,直接
set PATH=%PATH%;"此處改為VirtualBox所在目錄"
set PATH=%PATH%;"此處改為VirtualBox所在目錄"
2017-07-29
https://www.virtualbox.org/wiki/Download_Old_Builds_5_1
https://releases.hashicorp.com/vagrant/1.8.6/
https://releases.hashicorp.com/vagrant/1.8.6/
2017-07-28
atlas.hashicorp.com/boxes/search
https://app.vagrantup.com/boxes/search
https://app.vagrantup.com/boxes/search
2017-07-20