mongodb啟動時報錯ERROR: child process failed, exited with error number 1
不多說,直接上乾貨!
[email protected]virtual-machine:/usr/local/mongodb/bin# ls bsondump mongodump mongoimport mongoreplay mongostat mongo mongoexport mongooplog mongorestore mongotop mongod mongofiles mongoperf mongos [email protected]-virtual-machine:/usr/local/mongodb/bin# ./mongod --dbpath=/usr/local/mongodb/data/ --fork --logpath=/usr/local/mongodb/log about to fork child process, waiting until serveris ready for connections. forked process: 5784 ERROR: child process failed, exited with error number 1 [email protected]-virtual-machine:/usr/local/mongodb/bin#
失敗的原因
是因為通過service MongoDB restart時啟動失敗,或者如果是直接kill 掉來關閉都會出現這種情況
是因為沒有正常關閉導致的。
是因為你的配置目錄,是否應該要是log配置檔案,而很多人都寫成了log目錄。
解決辦法
[email protected]virtual-machine:~$ sudo ufw disable [sudo] password for zhouls: Firewall stopped and disabled on system startup [email protected]-virtual-machine:~$
[email protected]virtual-machine:/usr/local/mongodb# ls bin data GNU-AGPL-3.0 log MPL-2 README THIRD-PARTY-NOTICES[email protected]-virtual-machine:/usr/local/mongodb# rm -rf log/ [email protected]-virtual-machine:/usr/local/mongodb# ls bin data GNU-AGPL-3.0 MPL-2 README THIRD-PARTY-NOTICES [email protected]-virtual-machine:/usr/local/mongodb# touch log [email protected]-virtual-machine:/usr/local/mongodb# cd bin [email protected]-virtual-machine:/usr/local/mongodb/bin# pwd /usr/local/mongodb/bin [email protected]-virtual-machine:/usr/local/mongodb/bin# ls bsondump mongodump mongoimport mongoreplay mongostat mongo mongoexport mongooplog mongorestore mongotop mongod mongofiles mongoperf mongos [email protected]-virtual-machine:/usr/local/mongodb/bin# ./mongod --dbpath=/usr/local/mongodb/data/ --fork --logpath=/usr/local/mongodb/log about to fork child process, waiting until server is ready for connections. forked process: 6072 child process started successfully, parent exiting [email protected]-virtual-machine:/usr/local/mongodb/bin#
相關推薦
mongodb啟動時報錯ERROR: child process failed, exited with error number 1
不多說,直接上乾貨! [email protected]virtual-machine:/usr/local/mongodb/bin# ls bsondump mongodump mongoimport mongoreplay mongostat mongo
解決啟動mongodb --fork報錯 -ERROR: child process failed, exited with error number 1
把mongodb的資料目錄下的mongodb.lok檔案刪除再重啟一下,這個可能是非法關閉mongodb資料庫了 進入 /home/mongodb/data/db 目錄,把mongodb.lok刪除就行。 如果不行的話,估計是伺服器磁碟空間不夠了,然後/var/log/
啟動mongodb時ERROR: child process failed, exited with error number 100
這是因為之前暴力關閉mongodb服務導致資料被鎖定 找到自己mongo的目錄 這裡用mobaxterm讓大家看一下目錄結構 在config、shard1、shard2、shard3目錄的data目錄下(具體的分片根據自己而定),將 mongod.lock&nbs
專案啟動時報錯Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
https://www.cnblogs.com/liuyp-ken/p/7911536.html 解決過程: 1、檢查配置,反反覆覆看了很多遍,確認沒有問題。 2、 網上找了很多資料,類似的問題很多,看過答案以後依舊不得其要領。只好繼續看報錯程式碼,直到看到這一句:
解決mariadb 啟動時報錯Job for mariadb.service failed because the control process exited with error code. Se
錯誤:[[email protected] ~]# systemctl start mariadb.service Job for mariadb.service failed because the control process exited
centos7啟動iptables時報Job for iptables.service failed because the control process exited with error cod
異常信息 bsp stop input emctl tro stat mct centos7 centos7啟動iptables時報Job for iptables.service failed because the control process exi
Android Studio啟動時報錯 Emulator: emulator: ERROR: OpenGLES emulation failed to initialize.
問題描述 Android Studio啟動模擬器報錯 Emulator: emulator: ERROR: OpenGLES emulation failed to initialize. 問題原因 問題原因是我使用了 Nexus 5X and Nexus 5 模擬器,
docker jetty啟動時報錯 failed setting default capabilities.
cap 報錯 style 方法 容器 def class ... logs docker 容器中jetty啟動fail ,查看/var/log/jetty中的日誌發現具體錯誤信息如下: failed setting default capabilities.set_caps
ifup em2啟動網卡時報錯:connection activation failed
ifup 啟動網卡 報錯 環境:centos7,重啟網絡,報以下錯誤:ifup em2 ##啟動em2網卡時報錯Error: Connection activation failed: The connection is not for this device.解決方法:systemctl
mysql啟動時報錯:Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql.pid)
.com quit blog erro selinux 打開 archive out com mysql啟動報錯Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/da
centos 報錯 “Job for iptables.service failed because the control process exited with error code.”的解決辦法
cau ack res sta ble put use wal ror 原因:因為centos7默認的防火墻是firewalld防火墻,不是使用iptables,因此需要先關閉firewalld服務,或者幹脆使用默認的firewalld防火墻。 操作步驟: 關閉防火墻 1.
centos7下docker啟動失敗--ob for docker.service failed because the control process exited with error code.
今天在配置openshift用docker部署映象的時候,啟動docker發現竟然啟動失敗: 之前是可以啟動的,突然不能啟動了,想到我改了配置檔案: 執行: vim /etc/sysconfig/docker 可能是家的內容有問題
伺服器宕機,mysql無法啟動,job for mysql.service failed because the process exited with error code,資料庫備份與恢復
[問題現象] 伺服器在執行過程中,因人為意外導致電源被拔,伺服器宕機,mysql重啟不成功,報錯如下 根據提示,輸入systemctl status mysql.service和journalctl -xe檢視日誌,經過一番百度谷歌折騰也是無果。(很多時候,不能因為突發事件就“病急亂投醫”) &nb
centos7啟動MySQL時候突然進不去Job for mysqld.service failed because the control process exited with error cod
mysql突然進不去了,不知道什魔鬼 [[email protected] ~]# systemctl start mysqld.service Job for mysqld.service failed because the control pro
tomcat啟動時報錯:Error creating bean with name 'transactionManager' defined in class path resource
最近寫了一個專案,部署到服務上的時候遇到一個奇葩的問題,一般本地起專案是用jetty玩的,jetty完全正常當部署到tomcat報錯了,找了2天才解決問題,這兩天tomcat問題就像 滿漢全席一樣不重樣。 報錯原文:Error creating bean with name 'transacti
Centso7.2安裝mysql報錯Job for mysqld.service failed because the control process exited with error code.
最近安裝了好多環境,忙裡偷閒為安裝的所有環境以及安裝環境的過程中遇到的問題記錄下來。參考來源:https://www.cnblogs.com/qjoanven/p/7699382.html一、centos7.2安裝mysql1、解除安裝系統自帶Mariadb,mariadb是
MongoDB啟動報錯:缺失xxx.DLL檔案。exception: connect failed
其實在官方教程中有介紹,需要先打個補丁,補丁地址: downloading Update for Windows 7 for x64-based Systems (KB2999226) 如果不行,還有可能是MongDB是由C++編寫確實需要一些庫檔案,在Visual C+
Oracle啟動時報錯 error while trying to retrieve text for error ORA-12543
今天 安裝oracle資料庫,使用 pl啟東市總是提示 error while trying to retrieve text for error ORA-12543,網上查了半天,有的說 tnsna
Tomcat啟動時報錯,Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardCont
來源:http://www.cnblogs.com/abclife/p/6171271.html org.apache.catalina.LifecycleException: Failed to start component [StandardEn
CentOS7啟動SSH服務報:Job for ssh.service failed because the control process exited with error code.......
CentOS7啟動SSH服務報:Job for ssh.service failed because the control process exited with error codesee systemctl status ssh.service and journalc