回答編集履歴
2
追記と修正
test
CHANGED
@@ -14,25 +14,39 @@
|
|
14
14
|
|
15
15
|
MongoDB shell version: 2.4.6
|
16
16
|
|
17
|
-
connecting to:
|
17
|
+
connecting to: 127.0.0.1:27017/test
|
18
18
|
|
19
19
|
>
|
20
20
|
|
21
21
|
```
|
22
22
|
|
23
|
+
それとも
|
24
|
+
|
25
|
+
```
|
26
|
+
|
27
|
+
MongoDB shell version: 2.6.12
|
28
|
+
|
29
|
+
connecting to: test
|
30
|
+
|
31
|
+
2017-06-16T04:35:29.448+0000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
|
32
|
+
|
33
|
+
2017-06-16T04:35:29.449+0000 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
|
34
|
+
|
35
|
+
exception: connect failed
|
36
|
+
|
37
|
+
```
|
38
|
+
|
39
|
+
でしょうか?
|
23
40
|
|
24
41
|
|
25
42
|
|
26
43
|
|
27
44
|
|
28
|
-
|
29
|
-
もし、表示されないようであれば、Cloud9 の MongoDB の説明にある手順 ([https://community.c9.io/t/setting-up-mongodb/1717](https://community.c9.io/t/setting-up-mongodb/1717)) のように MongoDB をインストール&起動していますか?
|
45
|
+
もし、前者の「connecting to: 127.0.0.1:27017/test」が、表示されないようであれば、Cloud9 の MongoDB の説明にある手順 ([https://community.c9.io/t/setting-up-mongodb/1717](https://community.c9.io/t/setting-up-mongodb/1717)) で、「Running MongoDB on a Cloud9 workspace」からの手順が抜けていると思いますので、手順で抜けている部分がないか確認しながら実行してください。
|
30
46
|
|
31
47
|
|
32
48
|
|
33
|
-
|
49
|
+
その後で、もう一度、mongo コマンドで、接続できることを確認してから、node コマンドで、プログラムを実行してください。
|
34
|
-
|
35
|
-
|
36
50
|
|
37
51
|
|
38
52
|
|
@@ -43,3 +57,5 @@
|
|
43
57
|
|
44
58
|
|
45
59
|
どっとインストール見てないけど mongod の起動の説明ないのかな...
|
60
|
+
|
61
|
+
|
1
追記
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Cloud9 のシェル画面から
|
1
|
+
Cloud9 ワークスペースのシェル画面から
|
2
2
|
|
3
3
|
```
|
4
4
|
|