在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Python  Linux  數(shù)據(jù)庫  HTML/ 騰訊云centos7.4 MongoDB重啟,出現(xiàn)這個錯誤,是什么原因?怎么排查

騰訊云centos7.4 MongoDB重啟,出現(xiàn)這個錯誤,是什么原因?怎么排查

[root@VM_0_11_centos /]# systemctl status mongod.service
● mongod.service - High-performance, schema-free document-oriented database
   Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 三 2018-03-14 21:11:18 CST; 9s ago
     Docs: https://docs.mongodb.org/manual
  Process: 20510 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=2)
  Process: 20508 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
  Process: 20505 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
  Process: 20504 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)

3月 14 21:11:18 VM_0_11_centos systemd[1]: Starting High-performance, schema-free document-oriented database...
3月 14 21:11:18 VM_0_11_centos systemd[1]: mongod.service: control process exited, code=exited status=2
3月 14 21:11:18 VM_0_11_centos systemd[1]: Failed to start High-performance, schema-free document-oriented database.
3月 14 21:11:18 VM_0_11_centos systemd[1]: Unit mongod.service entered failed state.
3月 14 21:11:18 VM_0_11_centos systemd[1]: mongod.service failed.
回答
編輯回答
玄鳥

$OPTIONS這個環(huán)境變量沒指定?

2017年2月16日 04:01
編輯回答
過客

一般來說,應該先看看日志里面有輸出什么錯誤。

tail -n100 /var/log/mongodb/mongod.log

如果什么都沒有,那一般就是你的配置文件格式上有問題。直接執(zhí)行看一下:

sudo -u mongod mongod /etc/mongod.conf

先試試這些再看。

2017年2月9日 20:47
編輯回答
離夢

看看這篇文章能否給你一個提示:https://stackoverflow.com/que...

2018年8月22日 14:16