linux后台运行程序的几种方法 win

123456 20/04.29 13:03 991

Linux后台运行程序方法。


1、&

可能是最简单的方法了。

command  >  out.file  2>&1  & 


2、nohup,经常和&一起使用。

nohup command &


3、screen后台运行

apt install screen

#安装

screen -dmS new command

#新建一个窗口new,运行命令


4、setsid,很多系统应该是自带的。

setsid command


5、tmux,窗口管理器

apt install tmux

#安装

tmux new -s name

#新建一个name窗口。

Ctrl+b d,即可分离窗口。





上一篇:arch设置开机自启动和定时任务
下一篇:JavaScript各种模拟器大集合
最新回复 (0)
    • 姿势论坛—姿势小王子
      2
返回
发新帖
友情链接
免责声明:本站部分资源来源于网络,如有侵权请发邮件(mail@zsxwz.com)告知我们,我们将会在24小时内处理。