簡體   English   中英

RavenDB安裝問題System.Net.Sockets.SocketException (10013)

[英]RavenDB installation problems System.Net.Sockets.SocketException (10013)

我正在嘗試安裝 RavenDB。 O 從https://ravendb.net/download下載所有安裝文件。 自述文件說明如下:

Windows上RavenDB的啟動說明

  • RavenDB 作為控制台應用程序打開 Powershell 類型:.\run.ps1

  • RavenDB 作為服務打開 Powershell 類型:.\setup-as-service.ps1

上面的命令將在您的機器上安裝“RavenDB”服務。 請注意,它需要以管理員身份運行。 它會詢問您是否要設置安全的 RavenDB 服務器。 如果您選擇以安全模式運行,服務器將在端口 8080 或 443 上啟動。

您可以使用 Get-Service Powershell cmdlet 查看其狀態:

獲取服務名稱 RavenDB

狀態名稱 DisplayName ------ ---- ---------- 運行 RavenDB RavenDB

要管理服務,您可以使用 Stop-Service 和 Start-Service cmdlet(需要管理員權限)。

所以我做了第一步:我以管理員身份打開 PowerShell,導航到運行文件的位置並執行它。 我得到的是以下內容:

 _____ _____ ____ | __ \ | __ \| _ \ | |__) |__ ___ _____ _ __ | | | | |_) | | _ // _` \ \ / / _ \ '_ \| | | | _ < | | \ \ (_| |\ V / __/ | | | |__| | |_) | |_| \_\__,_| \_/ \___|_| |_|_____/|____/ Safe by default, optimized for efficiency

構建 52012,版本 5.2,SemVer 5.2.3,提交 999bd2d PID 12744,64 位,4 核,Phys Mem 7.884 GBytes,Arch:X64 源代碼(git repo): https://github.com/ravenb/ravendb內置受到 Hibernating Rhinos 和優秀貢獻者的喜愛! +------------------------------------------------ --------------+

System.Net.Sockets.SocketException (10013):打算訪問一個未獲得訪問權限的套接字。 在 System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError 錯誤,字符串調用者名稱) .AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.g__BindSocket|13_0(<>c__DisplayClass13_0& ) 在 Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() 在 Microsoft.AspNetCore.Server.Kestrel.Transport。 Sockets.SocketTransportFactory.BindAsync(EndPoint 端點,CancellationToken cancellationToken)在 Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint 端點,ConnectionDelegate connectionDelegate,EndpointConfig endpointConfig)在 Microsoft.AspNetCore.Server.Kestrel.Core .KestrelServerImpl.<>c__DisplayClass29_0 1.<<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(IEnumerable 1.<<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(IEnumerable 1 listenOptions,AddressBindContext 上下文)在 Microsoft.AspNetCore.Server.Kestrel .Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)在 Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 應用程序,CancellationToken cancellationToken)在 Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)在 Microsoft.AspNetCore.Hosting.WebHost.Start() 在 Raven.Server.RavenServer.Initialize() 在 C:\Builds\RavenDB-Stable-5.2\52012\src \Raven.Server\RavenServer.cs:C 中 Raven.Server.Program.Main(String[] args) 的第 249 行:\Builds\RavenDB-Stable-5.2\52012\src\Raven.Server\Program.cs:line 180 按回車鍵繼續...:

有誰知道為什么會這樣? 我真的花了很多時間在 inte.net 上尋找答案,比如允許 exe 文件通過 Windows 防火牆訪問 go,手動激活端口等等......現在我不知道該嘗試什么。

謝謝你的答案。

問題很可能是您有一些其他服務也在偵聽 RavenDB 嘗試使用的端口。

您可以通過查看settings.json文件來檢查它是什么端口,查看ServerUrlServerUrl.Tcp的值。

通常,RavenDB 會嘗試綁定到端口388888080 如果您已經有其他東西在監聽這些端口,則會出現錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM