##進入對應的目錄執行下面的命令 nohup java -jar F_Server.jar /null &>/dev/null &
值得注意的是,需要在命令后面添加這一句
/null &>/dev/null &
否則會報nohup: ignoring input and appending output to ‘nohup.out這個錯誤
如果添加也報錯可以嘗試在前面切換到管理員,即
sudo nohup java -jar F_Server.jar /null &>/dev/null &
但如果是我添加,反而報錯,這大概因為我啟動的就是root用戶