zoukankan      html  css  js  c++  java
  • 故障: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

    问题解决

  • 相关阅读:
    Dubbo 配置参数
    类文件结构

    shell script 编程入门
    OnePlus5刷 TWRP
    TimeUtil 工具类
    Outline 科学的上网
    HotSpot虚拟机的锁优化
    equals与hashCode
    Java中的动态代理
  • 原文地址:https://www.cnblogs.com/xuhao0705/p/14141518.html
Copyright © 2011-2022 走看看