我正在尝试启动使用端口8081的服务.服务在启动后立即停止.我调查事件查看器,我看到了这个:
原文链接:https://www.f2er.com/windows/363331.htmlService 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.
我可以做些什么来解决这个问题?
注意:该服务在其他计算机上运行良好.