安裝教程
安裝參考
遷移默認box文件位置
遷移box文件出現(xiàn)問題
安裝寶塔出現(xiàn)登錄不了
解決
安裝寶塔默認IP地址是打開不了的靶壮,可以手機配置一個私有網(wǎng)絡(luò)地址進行訪問
訪問:
http://192.168.33.20:8888/eae656d3
配置私有地址:
config.vm.network "private_network", ip: "192.168.33.20"
vagrant+centos7 安裝報錯
設(shè)置同步映射文件路徑報錯
config.vm.synced_folder "D:/vagrant/centos/", "/var/www"
報錯以下:
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o uid=1000,gid=1000 var_www /var/www
The error output from the command was:
mount: unknown filesystem type 'vboxsf'
解決:有時需要進行降版本處理
vagrant plugin install vagrant-vbguest
vagrant reload --provision
線上服務(wù)器上傳本地項目訪問沒有找到文件(前提已購買域名 并綁定到購買服務(wù)器上)
忘記查看寶塔登錄端口URL
共享目錄失敗無法和服務(wù)器進行同步更新
The configured shell (config.ssh.shell) is invalid and unable解決文章
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: password
The configured shell (config.ssh.shell) is invalid and unable
to properly execute commands. The most common cause for this is
using a shell that is unavailable on the system. Please verify
you're using the full path to the shell and that the shell is
executable by the SSH user.
安裝插件:
vagrant plugin install vagrant-vbguest
vagrant reload
或者
配置文件加上這個
config.vm.box = "centos"
config.ssh.shell = 'sh'
#The configured shell (config.ssh.shell) is invalid and unable 錯誤解決
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
config.vm.network "private_network", ip: "192.168.33.110"
config.vm.synced_folder ".","/vagrant",disabled:true #先禁止默認共享目錄文件
config.vm.synced_folder
"D:/vagrant/centos/www/html","/www/wwwroot/"