一 安裝好 VirtualBox+Vagrant(此處省略)
遇到問題:
Vagrant2.2.5無法使用VirtualBox6.1.8解決方案
javascript:void(0)
二 初始化
直接加上
報錯 -bash:ifconfig: command not found
執行
一直選擇 y 完事
再次執行 ifconfig
确實 是之前配的ip
三 xhell 進行連接配接
路徑: 你的檔案夾\.vagrant\machines\default\virtualbox
直接點選連接配接後
輸入使用者名/密碼
vagrant/vagrant
修改 ssd_config 裡 PermitRootLogin屬性 改為yes ,去掉注釋
PasswordAuthentication 改為yes 并且去掉 注釋 #
找不到直接/PasswordAuthentication 搜
下次登入 就可以用root 使用者登啦 !!!
打完收工