人的一生,有许多事情,是需要放在心里慢慢回味的,过去的就莫要追悔,一切向前看吧 任何打击都不足以成为你堕落的借口,即使你改变不了这个世界,你却依然可以改变自己,选择条正确的路永远走下去。
返回顶部

故障:ERROR:ERROR: child process failed, exited with error number 51

现象:

启动mongodb时报错

分析:

因为这个实例正在运行中导致无法删除

解决:

1、关闭再开启

1 [root@server1 mongodb]# mongod -f /etc/mongod.conf --shutdown
2 killing process with pid: 18256
3 [root@server1 mongodb]# mongod -f /etc/mongod.conf
4 about to fork child process, waiting until server is ready for connections.
5 forked process: 35994
6 child process started successfully, parent exiting

2、杀死进程再开启

 1 [root@server1 ~]# netstat -anpt | grep mongod
 2 tcp        0      0 0.0.0.0:27019           0.0.0.0:*               LISTEN      55285/mongod        
 3 tcp        0      0 0.0.0.0:27020           0.0.0.0:*               LISTEN      55423/mongod        
 4 tcp        0      0 0.0.0.0:27017           0.0.0.0:*               LISTEN      54913/mongod        
 5 tcp        0      0 0.0.0.0:27018           0.0.0.0:*               LISTEN      55124/mongod
 6 [root@server1 mongodb]# kill 54913
 7 [root@server1 mongodb]# mongod -f /etc/mongod.conf
 8 about to fork child process, waiting until server is ready for connections.
 9 forked process: 25674
10 child process started successfully, parent exiting

问题解决

posted @ 2020-12-15 22:54  yy1299050947  阅读(3123)  评论(0编辑  收藏  举报