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
后来发现该进程就不会自动关闭了。
按道理讲,nohup此处可以帮上忙吗?为何我的ssh端口转发使用nohup执行,一段时间之后他也会断开呢?
谁来拯救我的ssh端口转发呢?!