如何关闭由 Visual Studio 2022 启动的 Azurite 进程?

问题描述 投票:0回答:1

Visual Studio 2022 > 连接服务 > 存储 Azurite 模拟器(本地)

在大多数搜索中,我读到 Azurite 是一个 Node.js 进程,只能通过 ctrl-c 或关闭 cmd.exe 窗口(或者显然重新启动操作系统)从 cmd.exe 停止。

项目启动时,VS 将启动 Azurite 进程,但没有 cmd.exe 窗口。

即使 VS 关闭,Azurite 进程也会继续存在。

目前尚不清楚如何停止 VS 启动的 Azurite 进程。

我还发现这个exe很奇怪:

C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Extensions\Microsoft\Azure Storage Emulator\azurite.exe

如果 Azurite 是 Node.js 那么这是什么?

node.js visual-studio process azure-storage-emulator azurite
1个回答
0
投票

如何关闭由 Visual Studio 2022 启动的 Azurite 进程:-

正如您已经提到的,Azurite 是一个 Node.js 进程,可以通过 cmd 窗口中的

ctrl-c
cmd.exe 停止。

enter image description here

azurite.exe
文件用作
Node.js
进程的包装器。 Visual Studio 使用它来启动 Azurite,并具有集成所需的某些配置和环境变量。

当 Visual Studio 管理

Azurite
时,它使用此包装器而不是直接执行
Node.js
可执行文件。

但是还有一些其他方法可以完全停止蓝铜矿过程,详细信息如下。

  1. 您可以使用taskkill命令来终止azurite进程,方法是提供

    process ID
    (PID)或直接提供
    azurite.exe
    名称以及命令。 注意:从 VS Azurite 运行窗口获取进程 ID。或者执行
    tasklist
    命令来获取进程相关详细信息。

    tasklist /fi "services eq Azurite"
    taskkill /F /IM azurite.exe or taskkill /pid PID /f
    

enter image description here

  1. 通过在电脑的
    taskmanager
    菜单中搜索并搜索
    start
    来使用
    azurite >> end task
    ,如下所示。

enter image description here

  1. 最后一种方法是使用视觉工作室窗口本身。右键单击应用程序下的
    storage emulator
    ,然后单击
    disconnect
    。该过程将自动停止。

enter image description here

参考资料: 博客任务杀死

© www.soinside.com 2019 - 2024. All rights reserved.