加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows – HTTP无法注册URL

发布时间:2020-12-14 01:48:25 所属栏目:Windows 来源:网络整理
导读:我正在尝试启动使用端口8081的服务.服务在启动后立即停止.我调查事件查看器,我看到了这个: Service cannot be started. System.ServiceModel.AddressAlreadyInUseException: HTTP could not register URL https:// +:8081/api/. Another application has al
我正在尝试启动使用端口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’,它应该工作.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读