【问题标题】:(code=exited, status=150) on apache asp.net core(代码=已退出,状态=150)在 apache asp.net 核心上
【发布时间】:2022-08-16 13:59:38
【问题描述】:

我试图在 linux ubuntu 上托管 asp.net 核心应用程序,配置后我在服务文件中收到此错误: 进程:4151 ExecStart=/usr/bin/dotnet /var/www/serije/Serije.dll(代码=退出,状态=150) 主 PID:4151(代码=退出,状态=150)

6 月 28 日 08:02:33 serv systemd[1]: app.service: 主进程退出,code=exited,status=150/n/a 6 月 28 日 08:02:33 serv systemd[1]:app.service:单元进入失败状态。 6 月 28 日 08:02:33 serv systemd[1]: app.service: 失败,结果为 \'exit-code\'。

我的服务文件如下所示:

[Unit]
Description=Example .NET Web API App running on CentOS 7

[Service]
WorkingDirectory=/var/www/serije
ExecStart=/usr/bin/dotnet /var/www/serije/Serije.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-example
User=root
Environment=ASPNETCORE_ENVIRONMENT=Production 

[Install]
WantedBy=multi-user.target

    标签: c# linux apache asp.net-core


    【解决方案1】:

    尝试直接运行应用程序: dotnet Serije.dll (使用正确的路径)

    可能你会得到一个错误: 没有找到框架

    【讨论】:

      猜你喜欢
      • 2022-10-07
      • 2023-02-02
      • 1970-01-01
      • 1970-01-01
      • 2018-07-01
      • 1970-01-01
      • 2015-07-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多