Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
mongodb突然要关闭监听插座_Mongodb_Ubuntu_Server - Fatal编程技术网

mongodb突然要关闭监听插座

mongodb突然要关闭监听插座,mongodb,ubuntu,server,Mongodb,Ubuntu,Server,我有一台ubuntu 16.04服务器(1核,2GB内存),去年安装了MongoDB v4.2.1。最近出现此问题,mongod服务正在运行,但我的nodejs应用程序崩溃。重新启动后,mongod问题消失了 MongoDB日志: 2020-10-03T13:30:15.869+0330 I CONTROL [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends 20

我有一台ubuntu 16.04服务器(1核,2GB内存),去年安装了MongoDB v4.2.1。最近出现此问题,mongod服务正在运行,但我的nodejs应用程序崩溃。重新启动后,mongod问题消失了

MongoDB日志:

2020-10-03T13:30:15.869+0330 I  CONTROL  [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
2020-10-03T13:30:15.887+0330 I  NETWORK  [signalProcessingThread] shutdown: going to close listening sockets...
2020-10-03T13:30:15.887+0330 I  NETWORK  [signalProcessingThread] removing socket file: /tmp/mongodb-2717.sock
2020-10-03T13:30:15.905+0330 I  -        [signalProcessingThread] Stopping further Flow Control ticket acquisitions.
2020-10-03T13:30:15.917+0330 I  FTDC     [signalProcessingThread] Shutting down full-time diagnostic data capture
2020-10-03T13:30:15.930+0330 I  STORAGE  [signalProcessingThread] Deregistering all the collections
2020-10-03T13:30:15.933+0330 I  STORAGE  [signalProcessingThread] Timestamp monitor shutting down
2020-10-03T13:30:15.934+0330 I  STORAGE  [signalProcessingThread] WiredTigerKVEngine shutting down
2020-10-03T13:30:15.936+0330 I  STORAGE  [signalProcessingThread] Shutting down session sweeper thread
2020-10-03T13:30:15.936+0330 I  STORAGE  [signalProcessingThread] Finished shutting down session sweeper thread
2020-10-03T13:30:15.936+0330 I  STORAGE  [signalProcessingThread] Shutting down journal flusher thread
2020-10-03T13:30:15.986+0330 I  STORAGE  [signalProcessingThread] Finished shutting down journal flusher thread
2020-10-03T13:30:15.986+0330 I  STORAGE  [signalProcessingThread] Shutting down checkpoint thread
2020-10-03T13:30:15.988+0330 I  STORAGE  [signalProcessingThread] Finished shutting down checkpoint thread
2020-10-03T13:30:16.338+0330 I  STORAGE  [signalProcessingThread] shutdown: removing fs lock...
2020-10-03T13:30:16.347+0330 I  CONTROL  [signalProcessingThread] now exiting
2020-10-03T13:30:16.349+0330 I  CONTROL  [signalProcessingThread] shutting down with code:0
2020-10-03T13:30:16.861+0330 I  CONTROL  [main] ***** SERVER RESTARTED *****

只有在手动启动mongod时才能使用--fork选项,例如,如果您使用的是systemd,则进程本身会变成守护进程,而--fork选项会导致这种崩溃。

您的机器上有没有足够的实际存储空间来保证一切顺利运行?没有,一半的存储空间可用相关日志条目可能高于您引用的内容。