Windows系统后台运行进程的方法(后台运行)
Linux
Linux后台运行进程时,通常使用如下方法:
1 | nohup "运行的内容" & |
或者使用screen
或tmux
命令,请参考:https://www.xmmup.com/linuxzhiscreenminglinghoutaiyunxing.html 或 https://www.xmmup.com/linux-tmuxminglinghoutaiyunxing.html
Windows下通过cmd后台运行
在 Windows 上,可以使用以下方法在后台运行一个 CMD 脚本:
使用 START 命令:可以使用 START 命令在后台启动一个新的 CMD 窗口,并运行脚本。例如,假设要运行名为 script.cmd 的脚本,可以在命令提示符下输入以下命令: