virtualbox+vagrant学习-2(command cli)-19-vagrant box命令

Status

格式:this

vagrant status [name|id]

options只有 -h, --helpspa

这将告诉你vagrant正在管理的机器的状态。vagrant

很容易就会忘记你的vagrant机器是否正在运行、挂起、没有建立等等。这个命令告诉你底层客户机器的状态。rest

例子:code

userdeMacBook-Pro:~ user$ vagrant status
Current machine states:

default                   running (virtualbox)

The VM is running. To stop this VM, you can run `vagrant halt` to shut it down forcefully, or you can run `vagrant suspend` to simply suspend the virtual machine. In either case, to restart it again, simply run `vagrant up`.
VM正在运行。要中止这个VM,能够运行`vagrant halt`强制关闭它,也能够运行`vagrant suspend`简单地挂起虚拟机。在任何一种状况下,要从新启动它,只需运行`vagrant up`便可。
相关文章
相关标签/搜索