一、不输出日志的命令
#!/bin/bash
echo "starting nohup..."
nohup dotnet ./mynetcoreapp.dll > /dev/null >& &
echo "web has been running."
二、默认的命令
#!/bin/bash
echo "starting nohup..."
nohup dotnet ./mynetcoreapp.dll &
echo "web has been running."
一、不输出日志的命令
#!/bin/bash
echo "starting nohup..."
nohup dotnet ./mynetcoreapp.dll > /dev/null >& &
echo "web has been running."
二、默认的命令
#!/bin/bash
echo "starting nohup..."
nohup dotnet ./mynetcoreapp.dll &
echo "web has been running."