错误:子进程失败,退出,错误号为48 [英] ERROR: child process failed, exited with error number 48

查看:823
本文介绍了错误:子进程失败,退出,错误号为48的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误48对我来说是一个新错误.

error 48 is a new error for me.

尝试输入mongo时也出现错误

i'm also getting the error when trying to enter mongo

Error: network error while attempting to run command 'isMaster' on host '127.0.0.1:27017'

v3.2.10
git version: 79d9b3ab5ce20f51c272b4411202710a082d0317
allocator: tcmalloc
modules: none
build environment:
  distmod: ubuntu1604
  distarch: x86_64
  target_arch: x86_64

我尝试以以下方式启动mongo

i try starting mongo with

sudo mongod --fork --port 27017 --replSet replset --logpath ~/log/mongo.log

推荐答案

先杀死mongod进程

just kill the mongod process first

ps -ef | grep mongod
sudo kill -9 {processid}

然后运行命令.

这篇关于错误:子进程失败,退出,错误号为48的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆