之前我知道
<pre>
command &
</pre>
可以把command放在后臺??梢砸坏﹕hell關(guān)閉,命令仍然消失,因?yàn)楦高M(jìn)程死亡。要實(shí)現(xiàn)linux后臺啟動應(yīng)用,可以有下面幾種方案。
標(biāo)準(zhǔn)的 service 方式
<pre>
etc/init.d
etc/
</pre>
2.nohup方式
<pre>
nohup command &> /dev/null
</pre>
參考文章
后臺啟動logstash
https://github.com/chenryn/logstash-best-practice-cn/blob/master/get_start/daemon.md)