nginx 服务未启动(错误 =(代码 = 退出,状态 = 150))

nginx 服务未启动(错误 =(代码 = 退出,状态 = 150))

我创建了一项服务并尝试启动它,但显示以下错误。我的 nginx 处于活动状态。

错误 =(代码 = 退出,状态 = 150)我已尝试重新安装 nignx 并重新创建服务。

详细错误如下。

root@amit-OptiPlex-3050:/# sudo systemctl enable CoreApplication.service
root@amit-OptiPlex-3050:/# sudo systemctl start CoreApplication.service
root@amit-OptiPlex-3050:/# sudo systemctl status CoreApplication.service
● CoreApplication.service - CoreApplication .NET Core App
   Loaded: loaded (/etc/systemd/system/CoreApplication.service; enabled; vendor 
   Active: activating (auto-restart) (Result: exit-code) since Thu 2019-01-03 18
  Process: 15432 ExecStart=/usr/bin/dotnet /var/newwebapps/CoreApplication/CoreA
 Main PID: 15432 (code=exited, status=150)
lines 1-5/5 (END)...skipping...
● CoreApplication.service - CoreApplication .NET Core App
   Loaded: loaded (/etc/systemd/system/CoreApplication.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2019-01-03 18:13:31 IST; 1s ago
  Process: 15432 ExecStart=/usr/bin/dotnet /var/newwebapps/CoreApplication/CoreApplication.dll ***(code=exited, status=150)***
 Main PID: 15432 (code=exited, status=150)

答案1

我遇到了类似的错误,并在服务文件中运行了命令:/usr/bin/dotnet /path/to/dotnetcore.dll

结果是:未找到指定的框架“Microsoft.AspNetCore.App”,版本“2.2.6”。

您可能缺少正确的框架。

相关内容