teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

エラーの追記

2018/06/12 09:05

投稿

OotakeHumina
OotakeHumina

スコア13

title CHANGED
File without changes
body CHANGED
@@ -3,5 +3,24 @@
3
3
  qiita等にある手順に沿ってインストールをし、mongod.conf内の#securityのコメントアウトを外したいのですが、外してしまうとエラーが表示され再起動することが出来ません。
4
4
  どうしたら#securityのコメントアウトを外せるでしょうか?
5
5
 
6
- エラー文
6
+ ```mongodb起動時のエラー文
7
- Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details.
7
+ Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details.
8
+ ```
9
+
10
+ ```systemctl status mongod.serviceで表示されたエラー
11
+ mongod.service - High-performance, schema-free document-oriented database
12
+ Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
13
+ Active: failed (Result: exit-code) since 火 2018-06-12 17:53:01 JST; 7min ago
14
+ Docs: https://docs.mongodb.org/manual
15
+ Process: 21240 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=2)
16
+ Process: 21238 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
17
+ Process: 21236 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
18
+ Process: 21235 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
19
+ Main PID: 21161 (code=exited, status=0/SUCCESS)
20
+
21
+ 6月 12 17:53:01 【VPSアドレス】 systemd[1]: Starting High-performance, schema-free document-oriented database...
22
+ 6月 12 17:53:01 【VPSアドレス】 systemd[1]: mongod.service: control process exited, code=exited status=2
23
+ 6月 12 17:53:01 【VPSアドレス】 systemd[1]: Failed to start High-performance, schema-free document-oriented database.
24
+ 6月 12 17:53:01 【VPSアドレス】 systemd[1]: Unit mongod.service entered failed state.
25
+ 6月 12 17:53:01 【VPSアドレス】 systemd[1]: mongod.service failed.
26
+ ```