gpt4 book ai didi

azure-storage-emulator - Azure 存储模拟器无法启动

转载 作者:行者123 更新时间:2023-12-04 03:10:06 28 4
gpt4 key购买 nike

我正在尝试使用 Visual Studio 在本地运行 Azure Function 并执行定时触发器,并且我已在 local.settings.json 中进行了设置

"AzureWebJobsStorage": "UseDevelopmentStorage=true",

但是当我运行它时,它有一个错误“无效的存储帐户‘devstoreaccount1’。

我尝试启动模拟器(管理员,关闭防火墙),它有这个错误。默认安装,无需修改。
C:\Windows\system32>cd C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe init
Windows Azure Storage Emulator 5.2.0.0 command line tool
Found SQL Instance (localdb)\MSSQLLocalDB.
Creating database AzureStorageEmulatorDb52 on SQL instance '(localdb)\MSSQLLocalDB'.

Granting database access to user Robin-PC\Robin.
Database access for user Robin-PC\Robin was granted.

Initialization successful. The storage emulator is now ready for use.
The storage emulator was successfully initialized and is ready to use.

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe start
Windows Azure Storage Emulator 5.2.0.0 command line tool

Unhandled Exception: System.TimeoutException: Unable to open wait handle.
at Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorProcessController.InternalWaitForStorageEmulator(Int32 timeoutInMilliseconds)
at Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorProcessController.EnsureRunning(Int32 timeoutInMilliseconds)
at Microsoft.WindowsAzure.Storage.Emulator.Commands.StartCommand.RunCommand()
at Microsoft.WindowsAzure.Storage.Emulator.Program.Main(String[] args)

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>

最佳答案

经过多次尝试,我设法找出了原因。默认的 10000 端口由后台进程占用。我按照这个指令找出哪个进程并杀死它,然后它就会工作。

https://stackoverflow.com/a/43787993/283598

关于azure-storage-emulator - Azure 存储模拟器无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45980042/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com