问题
我正在开发 Azure Service Fabric 无状态服务。虽然我之前在本地部署过,但目前遇到以下错误:
DnsService UDP listener is unable to start. Please make sure there are no processes listening on the DNS port 53.
我尝试过的事情
- 在本地重新部署
- 通过托盘菜单停止和重置集群
- 从我的计算机中删除集群
- 检查并确保集群 list 的
DnsService
参数IsEnabled
设置为True
- 从头开始创建新应用
- Azure Service Fabric (OneBox) has constantly failed DnsService尚未提供解决方案
编辑:
- Stopping and disabling the ICS service对我来说没有帮助,因为当我重新启动计算机时 ICS 也会重新启动。
其他相关信息
我可以成功部署到Azure集群,所以我相当确定问题出在本地集群上。但删除集群并重新部署并不能解决错误!
如何解决此 DnsService 错误?
最佳答案
正如错误消息所示:
请确保没有进程在监听 DNS 端口 53。
从您提供的屏幕截图中显示的错误消息中,是否可以看到其他服务正在监听端口 53,因此该服务无法工作。
This github issue描述问题。
总而言之,问题很可能是 Internet 连接共享 (ICS) 服务 或监听端口 53 的其他服务。您必须停止这些服务才能使DNS服务工作正常。
要查找使用端口 53 的服务,您可以按照以下问题的答案进行操作: How can you find out which process is listening on a port on Windows?
关于Azure Service Fabric 本地部署导致 DnsService 错误 : DnsService UDP listener is unable to start,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54014764/