简体   繁体   English

无业游民停止在Windows 10上不起作用

[英]vagrant halt not working on windows 10

When I try the vagrant halt command in my command prompt, it tells me how the 'ssh' executable is not found. 当我在命令提示符下尝试vagrant halt命令时,它告诉我如何找不到“ ssh”可执行文件。 So, I followed these steps to download putty and generate a key to enter ssh mode. 因此,我按照以下步骤下载了腻子并生成了进入ssh模式的密钥。 However, when I try the halt command in my putty ssh mode, it says the program 'vagrant' is currently not installed. 但是,当我在腻子ssh模式下尝试使用halt命令时,它表示当前未安装程序“ vagrant”。 To run 'vagrant' please ask your administrator to install the package 'vagrant'. 要运行“ vagrant”,请要求您的管理员安装“ vagrant”软件包。

I got the vagrant up working just fine, but I want to properly halt it before I shut my computer off. 我让vagrant up工作得很好,但是我想在关闭计算机之前适当地停止它。

通过在管理员模式下使用git bash(右键单击该程序,选择以管理员身份运行)来解决该问题,因为它已内置ssh来停止流浪汉。我必须导航到git bash内的vagrant-local文件夹并执行vagrant halt命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM