前台任务转入后台运行

1、先ctrl+z将当前任务暂停并转入后台

^Z
[1]+  Stopped                 hive --service metastore

jobs查看详细情况

[root@master] /usr/local/hive/bin$ jobs -l
[1]+ 12255 Stopped                 hive --service metastore

2、bg %i将后台任务转为运行状态,i是中括号中的显示任务号

[root@master] /usr/local/hive/bin$ bg %1
[1]+ hive --service metastore &

https://segmentfault.com/a/1190000000349722

猜你喜欢

转载自blog.csdn.net/fanren224/article/details/84345412