got signal 1 (Hangup), will terminate after current cmd ends
1.? 查看日志如下:
2017-07-21T15:40:35.731+0800 I NETWORK? [initandlisten] waiting for connections on port 27017
2017-07-21T19:41:27.147+0800 I CONTROL? [signalProcessingThread] got signal 1 (Hangup), will terminate after current cmd ends
2017-07-21T19:41:27.147+0800 I FTDC? ? [signalProcessingThread] Shutting down full-time diagnostic data capture
2017-07-21T19:41:27.149+0800 I CONTROL? [signalProcessingThread] now exiting
2. stackoverflow 看過幾篇后感覺是沒有使用fork狸膏。但是之前的mongodb-org 3.2.4版本会油,配置文件也是一樣的啊,怎么就沒事呢撵彻?
比如 http://ask.csdn.net/questions/179010 穿铆, 討論加上 --fork
3. 于是配置文件加上:
processManagement:
fork: true? # fork and run in background
pidFilePath: /var/lib/mongodb/mongod.pid? # location of pidfile
后來發(fā)現(xiàn)該進(jìn)程就不會自動關(guān)閉了您单。
按道理講,nohup此處可以幫上忙嗎荞雏?為何我的ssh端口轉(zhuǎn)發(fā)使用nohup執(zhí)行虐秦,一段時(shí)間之后他也會斷開呢?
誰來拯救我的ssh端口轉(zhuǎn)發(fā)呢凤优?羡疗!