部署 – kestrel-hellomvc.service:步骤USER产生失败/usr/bin/dotnet:没有这样的过程

我在Nginx上发布了关于发布asp.net核心项目的教程 https://docs.microsoft.com/en-us/aspnet/core/publishing/linuxproduction

以前的步骤似乎都成功了,

但同时

systemctl start kestrel-hellomvc.service
systemctl status kestrel-hellomvc.service

我有

kestrel-hellomvc.service - Example .NET Web API Application running on Ubuntu

Loaded: loaded (/etc/systemd/system/kestrel-hellomvc.service; enabled; vendor preset: enabled)
Active: Failed (Result: exit-code) since Mon 2017-04-24 03:12:42 UTC; 8s ago
Process: 4285 ExecStart=/usr/bin/dotnet /home/84999/Demo4/Demo4.dll (code=exited,status=217/USER)
Main PID: 4285 (code=exited,status=217/USER)

Apr 24 03:12:42 instance-5 systemd[1]: Started Example .NET Web API Application running on Ubuntu.
Apr 24 03:12:42 instance-5 systemd[4285]: kestrel-hellomvc.service: Failed at step USER spawning /usr/bin/dotnet: No such process
Apr 24 03:12:42 instance-5 systemd[1]: kestrel-hellomvc.service: Main process exited,code=exited,status=217/USER
Apr 24 03:12:42 instance-5 systemd[1]: kestrel-hellomvc.service: Unit entered Failed state.
Apr 24 03:12:42 instance-5 systemd[1]: kestrel-hellomvc.service: Failed with result 'exit-code'.

有没有人知道解决方案,似乎我没有/usr/bin/dotnet文件

解决方法

我已经解决了问题,源文件夹所有者应该是www-data,有755权限

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....