小编A.K*_*A.K的帖子

自动重新加载网关以适应联合服务 apollo GraphQL 中的架构更改

在 Apollo Federation 中,我面临这样的问题:每次我们对服务列表中的任何联合服务的架构进行更改时,都需要重新启动网关。据我所知,每次网关启动时,它都会收集所有架构并聚合数据图。但是有没有一种方法可以在不重新启动网关的情况下自动处理此问题,因为它也会关闭所有其他不受影响的 GraphQL 联合服务

Apollo GraphQL,@apollo/gateway

graphql apollo-server apollo-federation

6
推荐指数
1
解决办法
4732
查看次数

kestrel-dotnetapp.service:在步骤 EXEC 生成 /usr/local/dotnet 时失败:权限被拒绝

我正在尝试使用 MS Enter中给出的步骤在 Centos8 中安装 .NET Core(3.1) 应用程序。

根据 Microsoft 文档的服务文件/etc/systemd/system/kestrel-dotnetapp.service

[Unit]  
Description= .NET Web API App for centos

[Service]
WorkingDirectory=/var/Application/netcoreapp31
ExecStart=/usr/local/dotnet /var/Application/netcoreapp31/helloapp.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:  
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnetapp
User=user
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false

[Install]
WantedBy=multi-user.target
Run Code Online (Sandbox Code Playgroud)

当我这样做时>sudo systemctl start kestrel-dotnetapp.service出现错误。

Jun 04 22:51:28 主机名 systemd[1827]: kestrel-dotnetapp.service: 无法执行命令:权限被拒绝
Jun 04 22:51:28 主机名 systemd[1827]: kestrel-dotnetapp.service: 在步骤 EXEC 生成时失败/usr/local/dotnet:权限被拒绝
-- 主题:进程 /usr/local/dotnet 无法执行
-- 定义者:systemd

找到下面的ls -la

[user@hostname dotnet]$ ls …
Run Code Online (Sandbox Code Playgroud)

linux centos .net-core kestrel-http-server asp.net-core

3
推荐指数
1
解决办法
9806
查看次数