1

当我尝试以普通用户身份从常规命令行运行Seq

seq run --nologo --listen="http://localhost:5435/" --storage="C:\\temp\\Seq"

我得到以下异常

Running as server; press Ctrl+C to exit.

[23:36:16 INF] Seq "5.1.3364" running on OS "Microsoft Windows 10 Pro"
[23:36:17 ERR] Start
Microsoft.AspNetCore.Server.HttpSys.HttpSysException (5): Access is denied
   at Microsoft.AspNetCore.Server.HttpSys.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId)
   at Microsoft.AspNetCore.Server.HttpSys.UrlPrefixCollection.RegisterAllPrefixes(UrlGroup urlGroup)
   at Microsoft.AspNetCore.Server.HttpSys.HttpSysListener.Start()
[23:36:17 FTL] Error running the server application
Microsoft.AspNetCore.Server.HttpSys.HttpSysException (5): Access is denied
   at Microsoft.AspNetCore.Server.HttpSys.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId)
   at Microsoft.AspNetCore.Server.HttpSys.UrlPrefixCollection.RegisterAllPrefixes(UrlGroup urlGroup)
   at Microsoft.AspNetCore.Server.HttpSys.HttpSysListener.Start()
   at Microsoft.AspNetCore.Server.HttpSys.MessagePump.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.Start()
   at Seq.Server.ServiceProcess.ServerService.Start()

做与管理员相同的事情就可以了,但是在使用添加 URL 之后

netsh http add urlacl url=https://+:5435/ user=MyDomain\MyUser

当我运行 Seq 时,我得到一个不同的异常:

Running as server; press Ctrl+C to exit.

[23:19:43 INF] Seq "5.1.3364" running on OS "Microsoft Windows 10 Pro"
[23:19:44 ERR] Start
Microsoft.AspNetCore.Server.HttpSys.HttpSysException (183): The prefix 'http://+:5435/' is already registered.
   at Microsoft.AspNetCore.Server.HttpSys.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId)
   at Microsoft.AspNetCore.Server.HttpSys.UrlPrefixCollection.RegisterAllPrefixes(UrlGroup urlGroup)
   at Microsoft.AspNetCore.Server.HttpSys.HttpSysListener.Start()
[23:19:44 FTL] Error running the server application
Microsoft.AspNetCore.Server.HttpSys.HttpSysException (183): The prefix 'http://+:5435/' is already registered.
   at Microsoft.AspNetCore.Server.HttpSys.UrlGroup.RegisterPrefix(String uriPrefix, Int32 contextId)
   at Microsoft.AspNetCore.Server.HttpSys.UrlPrefixCollection.RegisterAllPrefixes(UrlGroup urlGroup)
   at Microsoft.AspNetCore.Server.HttpSys.HttpSysListener.Start()
   at Microsoft.AspNetCore.Server.HttpSys.MessagePump.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.Start()
   at Seq.Server.ServiceProcess.ServerService.Start()

如何在域中的计算机上以普通用户身份从命令行运行 Seq?

4

0 回答 0