Linux下使用Nohup后台运行程序
Linux下使用Nohup后台运行程序
一、不输出日志的命令
#!/bin/bash
echo "starting nohup..."
nohup dotnet ./mynetcoreapp.dll > /dev/null 2>&1 &
echo "web has been running."
二、默认的命令
#!/bin/bash
echo "starting nohup..."
nohup dotnet ./mynetcoreapp.dll &
echo "web has been running."
Linux下使用Nohup后台运行程序
https://www.dearcloud.cn/2017/08/21/20200310-cnblogs-old-posts/20170821-Linux下使用Nohup后台运行程序/