部署 – kestrel-hellomvc.service:步骤USER产生失败/usr/bin/dotnet:没有这样
发布时间:2020-08-02 02:06:08 所属栏目:asp.Net 来源:互联网
导读:我在nginx上发布了关于发布asp.net核心项目的教程 https://docs.microsoft.com/en-us/aspnet/core/publishing/linuxproduction 以前的步骤似乎都成功了, 但同时 systemctl start kestrel-hellomvc.servicesystemctl status kestrel-hellomvc.servic
我在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权限(编辑:岳阳站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – 我应该使用WebMatrix构建一个真实世界的网站吗?
- iis-7.5 – 使用虚拟目录/应用程序在IIS中托管ASP.NET 5 We
- 增加ASP.NET站点的executionTimeout和maxRequestLength是否
- asp.net实现access数据库分页的方法
- ASP.net Substitution 页面缓存而部分不缓存的实现方法
- asp.net-mvc – Nhibernate / MVC:在View中处理延迟加载的
- 并行运行ASP.NET Webforms和ASP.NET MVC
- asp.net-mvc – 如何使用ASP.NET MVC ApiController获取GET
- asp.net-mvc – 在ASP.NET MVC中的LinkButton
- asp.net页面SqlCacheDependency缓存实例