windows – HTTP无法注册URL

前端之家收集整理的这篇文章主要介绍了windows – HTTP无法注册URL前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试启动使用端口8081的服务.服务在启动后立即停止.我调查事件查看器,我看到了这个:

Service cannot be started.
System.ServiceModel.AddressAlreadyInUseException: HTTP could not
register URL https:// +:8081/api/. Another application has already
registered this URL with HTTP.SYS. —>
System.Net.HttpListenerException: Failed to listen on prefix
‘https:// +:8081/api/’ because it conflicts with an existing
registration on the machine.

我试图用netsh注册url,但它说文件已经存在,但我无法删除预订,它不会出现在预订列表中(netsh http show urlacl).

netsh http add urlacl url=http:// +:8081/api/ user=\Everyone

Url reservation add Failed,Error: 183 Cannot create a file when that
file already exists.

netsh http delete urlacl url=https:// +:8081/api/

URL reservation delete Failed,Error: 2 The system cannot find the
file specified.

我可以做些什么来解决这个问题?

注意:该服务在其他计算机上运行良好.

您的删除命令使用的是https地址,而不是add命令中的http.删除’s’,它应该工作.
原文链接:https://www.f2er.com/windows/363331.html

猜你在找的Windows相关文章