gpt4 book ai didi

azure - 无法连接到 Azure 文件共享驱动器,使用映射驱动器无法连接,我也添加了端口 445

转载 作者:行者123 更新时间:2023-12-02 06:44:46 25 4
gpt4 key购买 nike

我已经创建了Azure存储,其中添加了一些文件到Azure文件共享,我想从外部访问这些文件,您可以将其映射为网络驱动器到本地计算机。建议添加 445 端口的出站规则。我也做了同样的事情,一旦我检查了 netstat,445 正在监听,但仍然无法使用文件资源管理器中的映射驱动器来映射驱动器。我也尝试过通过powershell。我遇到以下错误。凭证也正确。我能够通过 .NET 代码连接到文件共享。

也尝试连接到 CMD:收到以下错误:

System error 53 has occurred.
The network path was not found.

Powershell 出现以下错误:

New-PSDrive : The network resource type is not correct
At line:3 char:1
+ New-PSDrive -Name Z -PSProvider FileSystem -Root "\\socfileshare.file ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Z:PSDriveInfo) [New-PSDrive], Win32Exception
+ FullyQualifiedErrorId : CouldNotMapNetworkDrive,Microsoft.PowerShell.Commands.NewPSDriveCommand

最佳答案

您的 ISP 可能阻塞了端口 445。请运行

Test-NetConnection -ComputerName ([System.Uri]::new($storageAccount.Context.FileEndPoint).Host) -端口 445

此处的说明 - https://learn.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows

端口 445 的解决方法是设置 VPN 隧道 - 说明暂时托管在此处 - https://github.com/RenaShahMSFT/AzureFilesVPN

关于azure - 无法连接到 Azure 文件共享驱动器,使用映射驱动器无法连接,我也添加了端口 445,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54571999/

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