Error: child process failed, exited with error number 1
It’s usually a matter of permissions, or there is no corresponding path
Check steps: add a parameter after startup to export the log to a writable directory
./mongod –fork –logpath=/tmp/ mongod.log
Then look at the questions as follows:
2017-02-22T01:33:34.229+0800 I CONTROL [main] ERROR: Cannot write pid file to /var/run/mongodb/ mongod.pid : No such file or directory
This means that there is no such directory (/ var/run/mongodb /)
Then create a new one, MKDIR – P/var/run/mongodb/
The normal restart is as follows:
root@sz :~/soft/mongodb342/bin# ./mongod -f /etc/mongodb/ mongod.conf
about to fork child process, waiting until server is ready for connections.
forked process: 7482
child process started successfully, parent exiting
Read More:
- Mongodb start error: child process failed, exited with error number 1
- Mongodb failed to start: child process failed, exited with error number 100
- socket.error : [errno 10048] and view PID process number and port number
- Git bash here running error: failed to fork child process
- NPM compilation failed: can’t resolve ‘child_ process’
- Job for network.service Failed because the control process exited with error code. See “SystemC
- Solve the error in Ubuntu 18.04: called “net usershare info” but it failed: failed to execute child process “net”
- Splash fcgi: child exited with: 127 possible causes
- Job for docker.service failed because the control process exited with error code. See systemctl sta
- Linux virtual machine network “job for” network.service failed because the control process exited with error code”
- Nginx start error: job for nginx.service failed because the control process exited with error code
- Git bash Error: Could not fork child process: There are no available terminals (-1)
- systemctl start docker Job for docker.service failed because the control process exited with error
- Apache2 cannot be started and an error is reported for apache2.service failed because the control process exited with error code.
- IIS + Django project reported an error. The fastcgi process exited unexpectedly
- svn process exited with error code: 1
- Error:could not fork child process: There are no available terminals (-1).
- Process exited with an error: 1 (Exit value: 1)
- Error: Could not fork child process: There are no available terminals (-1).
- CentOS execution command error: – bash: fork: cannot allocate memory processing / viewing process number