微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.jb51.cc/windows/363331.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐