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."
宋兴柱:转载内容,请标明出处,谢谢!源文来自 宝贝云知识分享:https://www.dearcloud.cn