Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在命令提示符下尝试该vagrant halt命令时,它会告诉我如何找不到“ssh”可执行文件。因此,我按照这些步骤下载了 putty 并生成了进入 ssh 模式的密钥。但是,当我在 putty ssh 模式下尝试停止命令时,它说当前未安装程序“vagrant”。要运行 'vagrant',请让您的管理员安装包 'vagrant'。
vagrant halt
我的vagrant up工作很好,但我想在关闭计算机之前正确停止它。
vagrant up
这个问题是通过在管理员模式下使用 git bash 来解决的(右键单击程序,选择以管理员身份运行)来停止 vagrant,因为它内置了 ssh。我必须导航到 git bash 中的 vagrant-local 文件夹并执行vagrant halt命令。