/usr/lib/systemd/system/zl.service

systemctl enable zl.service

systemctl start zl.service

[Unit]
Description=zl System Service
After=network.target

[Service]
WorkingDirectory=/home/ZL
Type=simple
User=root
Group=root
ExecStart=/usr/bin/dotnet /home/ZL/JieYun.Web.dll
Restart=always
RestartSec=10
SyslogIdentifier=dotnet-zl
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false

[Install]
WantedBy=multi-user.target

相关文章:

  • 2021-11-29
  • 2022-01-31
  • 2021-09-15
  • 2021-12-30
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
猜你喜欢
  • 2022-01-25
  • 2021-07-14
  • 2021-10-25
相关资源
相似解决方案