每日一句 ( 20231031 )  

That it will never come again is what makes life sweet.

生活不會重來,這正是它美好的原因。———— Emily Dickinson

VirtualBox壓縮vmdk、vagrant打包box一口氣全對

如何壓縮VirtualBox的虛擬機vmdk文件大小并使用vagrant package成功打包鏡像box文件。環境:Windows7 vagrant1.9.5 VirtualBox4.3.12 虛擬機系統ubuntu14.04GitBash中執行命令首先vagrant ssh登錄到虛擬機中sudo dd if=/dev/zero of=/EMPTY bs=1Msudo rm -f /EMPTY切換到VirtualBox安裝目錄,執行: ./VBoxManage clonehd "/c/Users/zheng/VirtualBox VMs/ubuntu_default_1525...

win10中vagrant報錯Failed to create the host-only adapter

我的環境:Windows10? + vagrant 2.0.4 + virtualbox4.3.12當在win10中執行vagrant up啟動虛擬機環境時報錯:Failed to create the host-only adapter==> default: Clearing any previously set network interfaces...There was an error while executing `VBoxManage`, a CLI used by Vagrantfor controlling VirtualBox. The command and stderr is shown below.Command: ["hos...

vagrant+ubuntu14.4+lnmp一鍵包運行laravel可能需要的步驟

1. vagrant init原版ubuntu trusty環境,可能需要先離線下載安裝box2. 編輯Vagrantfile文件,取消注釋config.vm.network項,自定義ip。編輯底部config.vm.provision項,增加幾條shell。config.vm.provision "shell", path: "sources-list.sh"config.vm.provision "shell", inline: "apt-get update"config.vm.provision "shell", inline:...

填坑解決homestead中serve添加多站點后無法訪問

homestead添加多站點你可以通過Homestead.yaml文件并執行以下命令來重新初始化環境vagrant provision這個方法會導致數據庫重建(本人未測試),所以不建議使用這種方法。另一種方法可以ssh登錄后使用serve命令向nginx添加虛擬主機。serve newsite.com /home/vagrant/Code/newsite 80但運行后提示dos2unix: converting file /vagrant/scripts/serve-laravel.sh to Unix format ...沒其它...

狠狠爱无码一区二区三区_国产午夜福利精品久久yw_91国内精品久久久久影院优播_99riAV国产在线观看_亚洲欧美日本久久综合图区