netcore centos unit服务文件
作者:互联网
[Unit] Description=apinetcore web1 [Service] ExecStart=/usr/bin/dotnet /opt/netcore/publish/WebApplication1.dll Restart=always # Restart service after 10 seconds if the dotnet service crashes: RestartSec=10 SyslogIdentifier=WebApplication1 User=root Environment=ASPNETCORE_ENVIRONMENT=Production [Install] WantedBy=multi-user.target
标签:10,WebApplication1,centos,service,netcore,unit,dotnet,Restart 来源: https://www.cnblogs.com/jonney-wang/p/16163792.html