【问题标题】:Enable Kestrel service on centos exited (code=exited, status=145)在 centos 退出时启用 Kestrel 服务 (code=exited, status=145)
【发布时间】:2018-11-06 05:36:39
【问题描述】:

我正在尝试在 CentOs 7 上部署一个 aspnet 核心应用程序 我关注this link,直到我启用并检查 kestrel-myapp.service 的状态使用 systemctl status kestrel.-myapp.service 然后我得到错误ExecStart=/usr/share/dotnet/dotnet /path-to-dll (code=exited, status=145)

如何解决?

【问题讨论】:

    标签: asp.net-core deployment reverse-proxy centos7 kestrel-http-server


    【解决方案1】:

    我遇到了同样的问题,并最终从这篇文章中找到了某种路径安全或长度问题 -> https://github.com/dotnet/core-setup/issues/4038 当我运行 dotnet 应用程序时,它运行良好,即使使用 www-data。 但似乎当我使用完整路径运行它时,它抛出了“realpath():不是目录”错误。 我之前将我的应用程序设置在一条冗长的路径中,并提供额外的安全性,但我将其移至 /opt/myapp 并且它运行良好。

    【讨论】:

      猜你喜欢
      • 2018-12-24
      • 2022-08-17
      • 2021-03-19
      • 1970-01-01
      • 2020-06-23
      • 2021-12-22
      • 1970-01-01
      • 2020-12-18
      • 2022-11-02
      相关资源
      最近更新 更多