几个常用的vagrant命令,以及重新安装homestead

$ vagrant box list    # 查看本地box列表

$ vagrant box remove  # 从box列表移除

遇到如下提示:

$ cd ~/Homestead && vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Importing base box 'lc/homestead'...
==> homestead-7: Matching MAC address for NAT networking...
==> homestead-7: Checking if box 'lc/homestead' version '8.2.1' is up to date...
A VirtualBox machine with the name 'homestead-7' already exists.
Please use another name or delete the machine with the existing
name, and try again.

删除,homestead-7 即可

vagrant destroy命令

//-----------------------

下面我们来说说,如果重新安装homestead

$ vagrant.exe destroy

$ vagrant.exe box list

$ vagrant.exe box remove lc/homestead

然后


T580@DESKTOP MINGW64 /c/lc-homestead-8.2.1-2019112300
$ vagrant box add metadata.json

然后结合

构建 Laravel 开发环境,进行操作

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值