vue cli3 终止端口_如何从Windows中的CLI终止进程

vue cli3 终止端口_如何从Windows中的CLI终止进程

vue cli3 终止端口

vue cli3 终止端口_如何从Windows中的CLI终止进程

Sure, anybody can end a process from the Task Manager, but did you know you can also do it from the command line?

当然,任何人都可以从任务管理器中结束进程,但是您知道您也可以从命令行完成该进程吗?

如何从Windows中的CLI终止进程 (How to Kill a Process From the CLI in Windows)

If the command prompt is your flavor of tea, you will need to know to know the name of the process you are trying to kill beforehand. The easiest way to get these is on the Details tab of the Task Manager.

如果命令提示符是您喜欢的茶口味,则需要事先知道要尝试杀死的进程的名称。 获得这些内容的最简单方法是在任务管理器的“详细信息”选项卡上。

vue cli3 终止端口_如何从Windows中的CLI终止进程

Once you have the name of the process a simple tskill is all it takes:

一旦有了流程的名称,就可以使用简单的tskill:

tskill chrome

tskillChrome

vue cli3 终止端口_如何从Windows中的CLI终止进程

If you have already migrated to the Command Prompt’s older brother PowerShell, it is much simpler.

如果您已经迁移到命令提示符的较早版本的PowerShell,则它要简单得多。

Get-Process | Where Name –Like “chrome*” | Stop-Process

获取流程| 名称-如“ chrome *” | 停止程序

The above would stop all the processes that match the chrome* wildcard pattern.

上面的操作将停止所有与chrome *通配符模式匹配的进程。

vue cli3 终止端口_如何从Windows中的CLI终止进程

That’s all there is to it.

这里的所有都是它的。

翻译自: https://www.howtogeek.com/145882/how-to-kill-a-process-from-the-cli-in-windows/

vue cli3 终止端口