nohup java -jar xxx.jar &
提示nohup: ignoring input and appending output to 'nohup.out'
正確做法:在當(dāng)shell中提示了nohup成功后還需要按終端上鍵盤任意鍵退回到shell輸入命令窗口,然后通過在shell中輸入exit來退出終端;
錯誤做法:每次在nohup執(zhí)行成功后直接點(diǎn)關(guān)閉程序按鈕關(guān)閉終端.。所以這時(shí)候會斷掉該命令所對應(yīng)的session,導(dǎo)致nohup對應(yīng)的進(jìn)程被通知需要一起shutdown。