質問編集履歴
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,4 +23,22 @@
|
|
23
23
|
|
24
24
|
環境は以下になっています(関係あるかわかりませんが)
|
25
25
|
ディストリビューション:CentOS7
|
26
|
-
httpd:nginx1.15
|
26
|
+
httpd:nginx1.15
|
27
|
+
|
28
|
+
|
29
|
+
[追記]
|
30
|
+
VPS mongoDBで検索し、インストール方法に問題がないか調べていたところ、
|
31
|
+
起動に必要なディレクトリ/data/dbを作成していないことがわかり、早速作成し、statusを確認したところ、
|
32
|
+
```ここに言語を入力
|
33
|
+
Redirecting to /bin/systemctl status mongod.service
|
34
|
+
● mongod.service - High-performance, schema-free document-oriented database
|
35
|
+
Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
|
36
|
+
Active: failed (Result: exit-code) since 火 2018-06-26 00:22:36 JST; 1min 9s ago
|
37
|
+
Docs: https://docs.mongodb.org/manual
|
38
|
+
Process: 21523 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=48)
|
39
|
+
Process: 21521 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
|
40
|
+
Process: 21519 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
|
41
|
+
Process: 21518 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
|
42
|
+
```
|
43
|
+
|
44
|
+
エラーstatusが100(mongodプロセスがキャッチされない例外をスローしたときに返されます。<公式マニュアル参照>)から48(エラーにより、新規接続を開始したmongodかmongos、着信接続を待機できませんでした。)に変わりました。
|