我在ubuntu服务器上构建.net核心Web api。因此,我将解决方案投放到/home/maks/SA
,配置了nginx,并在命令dotnet restore之后,dotnet运行一切正常(我使用Postman测试了我的解决方案)。现在,我需要设置主管以保持我的应用程序运行。但是我所有的尝试都失败了:(主管日志 应用程序日志
Conf文件
[program:SA]
command=/usr/bin/dotnet /var/SA/SA.dll
directory=/var/SA/
autostart=true
autorestart=true
stderr_logfile=/var/log/SA.err.log
stdout_logfile=/var/log/SA.out.log
我真的需要你的帮助!
通过使用此指令https://docs.microsoft.com/zh-cn/aspnet/core/publishing/linuxproduction并通过此命令进行发布来解决dotnet publish -c release -r ubuntu.14.04-x64
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句