3

を使用してmongodbのインストールを完了しました

sudo yum install mongodb

しかし、レールアプリで「mongo」を実行しようとすると、

[thiago@netbox mongoExample]$ mongo
MongoDB shell version: 2.2.4
connecting to: test
Wed Aug 21 16:07:56 exec error: src/mongo/shell/mongo.js:91 couldn't connect to server 127.0.0.1:27017
db = new Mongo().getDB( url );
     ^

exception: connect failed

私も試しました:

[thiago@netbox mongoExample]$ service mongo start
Redirecting to /bin/systemctl start  mongo.service
Failed to issue method call: Access denied
[thiago@netbox mongoExample]$ sudo service mongo start
[sudo] password for thiago: 
Redirecting to /bin/systemctl start  mongo.service
Failed to issue method call: Unit mongo.service failed to load: No such file or directory. See system logs and 'systemctl status mongo.service' for details.

[thiago@netbox mongoExample]$ systemctl status mongo.service
mongo.service
   Loaded: error (Reason: No such file or directory)
   Active: inactive (dead)

彼らのドキュメント(http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-c​​entos-or-fedora-linux / )に従ってみましたが、うまくいきませんでした。

助けていただければ幸いです。前もって感謝します!

4

0 に答える 0