Linux nohup 命令
nohup 表示不挂断地运行命令,是 no hangup 的缩写,语法格式如下:
1 | nohup Command [ Arg ... ] [ & ] |
- nohup 命令运行由 Command参数和任何相关的 Arg参数指定的命令,忽略所有挂断(SIGHUP)信号。
- nohup放在命令的开头,表示不挂起(no hang up),也即,关闭终端或者退出某个账号,进程也继续保持运行状态,一般配合&符号一起使用。如 nohup command &。
nohup 表示不挂断地运行命令,是 no hangup 的缩写,语法格式如下:
1 | nohup Command [ Arg ... ] [ & ] |