最新回答 / MACDfree
课程中讲到Vagrantfile文件中最后可以执行shell,那就可以执行bash命令,类似于:config.vm.provision "shell", inline: <<-SHELL echo "127.0.0.1 localhost localhost" >> /etc/hostsSHELL然后执行ragrant reload --provision来运行命令
2017-08-07
最赞回答 / 魏铭轩
修复步骤:如果没有vbguest插件,请安装:$ vagrant plugin install vagrant-vbguest跑流汗显示错误。$ vagrant up登录虚拟机$ vagrant ssh固定!在客人端(VM记录)。$ sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions回到主机上,重新加载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
如果出现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