RavenDB安装问题System.Net.Sockets.SocketException(10013)



我正在尝试安装RavenDB。O从https://ravendb.net/download下载所有安装文件。自述文件声明如下:

Windows下RavenDB启动说明

  • RavenDB作为控制台应用程序打开Powershell类型:。 run.ps1

  • RavenDB as Service打开Powershell类型:。 setup-as-service.ps1

上面的命令将在您的机器。注意,它需要以管理员身份运行。它会。询问是否要设置安全的RavenDB服务器。服务器是将在端口8080或443上启动(如果您选择运行)安全模式。

你可以使用Get-Service Powershell命令查看它的状态:

Get-Service -Name RavenDB

状态名称DisplayName------ ---- ----------- 运行RavenDB RavenDB

要管理服务,可以使用Stop-Service和Start-Service cmdlet(需要管理员权限).

  • 设置打开浏览器,如果没有自动打开,在url中打印"服务器可用:"按照web设置说明:https://ravendb.net/docs/article-page/5.0/csharp/start/installation/setup-wizard

  • 升级到新版本按照以下网址提供的升级说明进行升级:https://ravendb.net/docs/article-page/5.0/csharp/start/installation/upgrading-to-new-version

所以我做了第一步:我以管理员身份打开PowerShell,导航到运行文件的位置并执行它。我得到的结果如下:

_____                       _____  ____
|  __                      |  __ |  _ 
| |__) |__ ___   _____ _ __ | |  | | |_) |
|  _  // _`   / / _  '_ | |  | |  _ <
| |   (_| | V /  __/ | | | |__| | |_) |
|_|  ___,_| _/ ___|_| |_|_____/|____/

Safe by default, optimized for efficiency

Build 52012, Version 5.2, SemVer 5.2.3, Commit 999bd2d PID 12744, 64bit, 4核,物理内存7.884 gb, Arch: X64repo): https://github.com/ravendb/ravendb用爱建造冬眠的犀牛和了不起的贡献者!+---------------------------------------------------------------+

System.Net.Sockets。SocketException(10013):意图取消访问Socket no permitido poor SUS permisos de access。在System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException (SocketError错误,字符串callerName)System.Net.Sockets.Socket。DoBind(端点endPointSnapshotSocketAddress (socket地址)System.Net.Sockets.Socket。绑定(端点localEP)Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.g__BindSocket | 13 _0 (& lt;祝辞c__DisplayClass13_0&)Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind ()在Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(端点endpoint, CancellationToken CancellationToken) atMicrosoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(端点端点,ConnectionDelegate, EndpointConfigendpointConfig)Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass29_01.<<StartAsync>g__OnBind|0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IEnumerablelistenOptions, AddressBindContext context) atMicrosoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync (CancellationTokencancellationToken)Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync TContext (IHttpApplication"1CancellationToken)Microsoft.AspNetCore.Hosting.WebHost.StartAsync (CancellationToken在Microsoft.AspNetCore.Hosting.WebHost.Start()ravenserver . initialize (C: 构建 ravendb -稳定- 5.2 52012 src Raven.Server RavenServer.cs:行Raven.Server.Program。Main(String[] args) inC: 构建 ravendb -稳定- 5.2 52012 src Raven.Server Program.cs:行180按enter键继续…:

有人知道为什么会发生这种情况吗?我真的花了很多时间在互联网上寻找答案,比如允许exe文件通过Windows防火墙,手动激活端口等…现在我不知道该怎么做了。

谢谢你的回答。

这个问题很可能是您有一些其他服务也在侦听RavenDB试图使用的端口。

您可以通过查看settings.json文件来检查它是哪个端口,查看ServerUrlServerUrl.Tcp的值。

通常,RavenDB会尝试绑定端口388888080。如果已经有其他程序在监听这些端口,就会出现错误。