gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 03:37:00 30 4
gpt4 key购买 nike

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

Startup instructions for RavenDB on Windows

  • RavenDB as a Console Application Open Powershell Type:.\run.ps1

  • RavenDB as Service Open Powershell Type:.\setup-as-service.ps1

The above command is going to install 'RavenDB' service on yourmachine. Note it requires to be run as administrator. It is going toask whether you'd like to setup secure RavenDB server. The server isgoing to start on port 8080 or 443, if you have chosen to run insecure mode.

You can view its status using the Get-Service Powershell cmdlet:

Get-Service -Name RavenDB

状态名称显示名称------ ---- ------------ 运行 RavenDB RavenDB

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

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

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


Safe by default, optimized for efficiency

Build 52012, Version 5.2, SemVer 5.2.3, Commit 999bd2d PID 12744, 64bits, 4 Cores, Phys Mem 7.884 GBytes, Arch: X64 Source Code (gitrepo): https://github.com/ravendb/ravendb Built with love byHibernating Rhinos and awesome contributors!+---------------------------------------------------------------+

System.Net.Sockets.SocketException (10013): Intento de acceso a unsocket no permitido por sus permisos de acceso. atSystem.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketErrorerror, String callerName) atSystem.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot,SocketAddress socketAddress) atSystem.Net.Sockets.Socket.Bind(EndPoint localEP) atMicrosoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.g__BindSocket|13_0(<>c__DisplayClass13_0&) atMicrosoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()atMicrosoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPointendpoint, CancellationToken cancellationToken) atMicrosoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPointendPoint, ConnectionDelegate connectionDelegate, EndpointConfigendpointConfig) atMicrosoft.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(IEnumerable1listenOptions, AddressBindContext context) atMicrosoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationTokencancellationToken) atMicrosoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1application, CancellationToken cancellationToken) atMicrosoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationTokencancellationToken) at Microsoft.AspNetCore.Hosting.WebHost.Start()at Raven.Server.RavenServer.Initialize() inC:\Builds\RavenDB-Stable-5.2\52012\src\Raven.Server\RavenServer.cs:line249 at Raven.Server.Program.Main(String[] args) inC:\Builds\RavenDB-Stable-5.2\52012\src\Raven.Server\Program.cs:line180 Press enter to continue...:

有人知道为什么会这样吗?我确实花了很多时间在互联网上寻找答案,例如允许 exe 文件通过 Windows 防火墙、手动激活端口等...现在我只是不知道该尝试什么。

感谢您的回答。

最佳答案

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

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

通常,RavenDB 会尝试绑定(bind)到端口388888080。如果您已经有其他东西在监听这些端口,则会出现错误。

关于powershell - RavenDB 安装问题 System.Net.Sockets.SocketException (10013),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69486063/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com