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 &